Class JavaExpressionVisitor<R,P>
java.lang.Object
org.checkerframework.dataflow.expression.JavaExpressionVisitor<R,P>
- Type Parameters:
R- the return type of the visit methodsP- the parameter passed to the visit methods
- Direct Known Subclasses:
JavaExpressionConverter,JavaExpressionScanner
A simple visitor for
JavaExpression.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisit(JavaExpression javaExpr, P p) Visits the givenjavaExpr.protected abstract RvisitArrayAccess(ArrayAccess arrayAccessExpr, P p) Visit anArrayAccess.protected abstract RvisitArrayCreation(ArrayCreation arrayCreationExpr, P p) Visit anArrayCreation.protected abstract RvisitBinaryOperation(BinaryOperation binaryOpExpr, P p) Visit aBinaryOperation.protected abstract RvisitClassName(ClassName classNameExpr, P p) Visit aClassName.protected abstract RvisitFieldAccess(FieldAccess fieldAccessExpr, P p) Visit aFieldAccess.protected abstract RvisitFormalParameter(FormalParameter parameterExpr, P p) Visit aFormalParameter.protected abstract RvisitLocalVariable(LocalVariable localVarExpr, P p) Visit aLocalVariable.protected abstract RvisitMethodCall(MethodCall methodCallExpr, P p) Visit aMethodCall.protected abstract RvisitSuperReference(SuperReference superExpr, P p) Visit aSuperReference.protected abstract RvisitThisReference(ThisReference thisExpr, P p) Visit aThisReference.protected abstract RvisitUnaryOperation(UnaryOperation unaryOpExpr, P p) Visit anUnaryOperation.protected abstract RvisitUnknown(Unknown unknownExpr, P p) Visit anUnknown.protected abstract RvisitValueLiteral(ValueLiteral literalExpr, P p) Visit aValueLiteral.
-
Constructor Details
-
JavaExpressionVisitor
public JavaExpressionVisitor()
-
-
Method Details
-
visit
Visits the givenjavaExpr.- Parameters:
javaExpr- the expression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the expression
-
visitArrayAccess
Visit anArrayAccess.- Parameters:
arrayAccessExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayAccessExpr
-
visitArrayCreation
Visit anArrayCreation.- Parameters:
arrayCreationExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayCreationExpr
-
visitBinaryOperation
Visit aBinaryOperation.- Parameters:
binaryOpExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
binaryOpExpr
-
visitClassName
Visit aClassName.- Parameters:
classNameExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
classNameExpr
-
visitFieldAccess
Visit aFieldAccess.- Parameters:
fieldAccessExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
fieldAccessExpr
-
visitFormalParameter
Visit aFormalParameter.- Parameters:
parameterExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
parameterExpr
-
visitLocalVariable
Visit aLocalVariable.- Parameters:
localVarExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
localVarExpr
-
visitMethodCall
Visit aMethodCall.- Parameters:
methodCallExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
methodCallExpr
-
visitThisReference
Visit aThisReference.- Parameters:
thisExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
thisExpr
-
visitSuperReference
Visit aSuperReference.- Parameters:
superExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
superExpr
-
visitUnaryOperation
Visit anUnaryOperation.- Parameters:
unaryOpExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
unaryOpExpr
-
visitUnknown
Visit anUnknown.- Parameters:
unknownExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
unknownExpr
-
visitValueLiteral
Visit aValueLiteral.- Parameters:
literalExpr- the JavaExpression to visitp- the parameter to pass to the visit method- Returns:
- the result of visiting the
literalExpr
-