Class JavaExpressionScanner<P>
java.lang.Object
org.checkerframework.dataflow.expression.JavaExpressionVisitor<Void,P>
 
org.checkerframework.dataflow.expression.JavaExpressionScanner<P>
- Type Parameters:
- P- the parameter passed to the scan methods
A simple scanner for 
JavaExpression.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidscan(List<? extends @Nullable JavaExpression> expressions, P p) Scans each JavaExpression inexpressions.voidscan(JavaExpression javaExpression, P p) Scans the JavaExpression.protected VoidvisitArrayAccess(ArrayAccess arrayAccessExpr, P p) Visit anArrayAccess.protected VoidvisitArrayCreation(ArrayCreation arrayCreationExpr, P p) Visit anArrayCreation.protected VoidvisitBinaryOperation(BinaryOperation binaryOpExpr, P p) Visit aBinaryOperation.protected VoidvisitClassName(ClassName classNameExpr, P p) Visit aClassName.protected VoidvisitFieldAccess(FieldAccess fieldAccessExpr, P p) Visit aFieldAccess.protected VoidvisitFormalParameter(FormalParameter parameterExpr, P p) Visit aFormalParameter.protected VoidvisitLocalVariable(LocalVariable localVarExpr, P p) Visit aLocalVariable.protected VoidvisitMethodCall(MethodCall methodCallExpr, P p) Visit aMethodCall.protected VoidvisitThisReference(ThisReference thisExpr, P p) Visit aThisReference.protected VoidvisitUnaryOperation(UnaryOperation unaryOpExpr, P p) Visit anUnaryOperation.protected VoidvisitUnknown(Unknown unknownExpr, P p) Visit anUnknown.protected VoidvisitValueLiteral(ValueLiteral literalExpr, P p) Visit aValueLiteral.Methods inherited from class org.checkerframework.dataflow.expression.JavaExpressionVisitorvisit
- 
Constructor Details- 
JavaExpressionScannerpublic JavaExpressionScanner()
 
- 
- 
Method Details- 
scanScans the JavaExpression.- Parameters:
- javaExpression- the expression to scan
- p- parameter to pass
 
- 
scanScans each JavaExpression inexpressions.- Parameters:
- expressions- a list of JavaExpressions to scan
- p- pameter to pass
 
- 
visitArrayAccessDescription copied from class:JavaExpressionVisitorVisit anArrayAccess.- Specified by:
- visitArrayAccessin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- arrayAccessExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the arrayAccessExpr
 
- 
visitArrayCreationDescription copied from class:JavaExpressionVisitorVisit anArrayCreation.- Specified by:
- visitArrayCreationin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- arrayCreationExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the arrayCreationExpr
 
- 
visitBinaryOperationDescription copied from class:JavaExpressionVisitorVisit aBinaryOperation.- Specified by:
- visitBinaryOperationin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- binaryOpExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the binaryOpExpr
 
- 
visitClassNameDescription copied from class:JavaExpressionVisitorVisit aClassName.- Specified by:
- visitClassNamein class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- classNameExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the classNameExpr
 
- 
visitFormalParameterDescription copied from class:JavaExpressionVisitorVisit aFormalParameter.- Specified by:
- visitFormalParameterin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- parameterExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the parameterExpr
 
- 
visitFieldAccessDescription copied from class:JavaExpressionVisitorVisit aFieldAccess.- Specified by:
- visitFieldAccessin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- fieldAccessExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the fieldAccessExpr
 
- 
visitLocalVariableDescription copied from class:JavaExpressionVisitorVisit aLocalVariable.- Specified by:
- visitLocalVariablein class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- localVarExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the localVarExpr
 
- 
visitMethodCallDescription copied from class:JavaExpressionVisitorVisit aMethodCall.- Specified by:
- visitMethodCallin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- methodCallExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the methodCallExpr
 
- 
visitThisReferenceDescription copied from class:JavaExpressionVisitorVisit aThisReference.- Specified by:
- visitThisReferencein class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- thisExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the thisExpr
 
- 
visitUnaryOperationDescription copied from class:JavaExpressionVisitorVisit anUnaryOperation.- Specified by:
- visitUnaryOperationin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- unaryOpExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the unaryOpExpr
 
- 
visitUnknownDescription copied from class:JavaExpressionVisitorVisit anUnknown.- Specified by:
- visitUnknownin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- unknownExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the unknownExpr
 
- 
visitValueLiteralDescription copied from class:JavaExpressionVisitorVisit aValueLiteral.- Specified by:
- visitValueLiteralin class- JavaExpressionVisitor<Void,- P> 
- Parameters:
- literalExpr- the JavaExpression to visit
- p- the parameter to pass to the visit method
- Returns:
- the result of visiting the literalExpr
 
 
-