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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
scan
(List<? extends @Nullable JavaExpression> expressions, P p) Scans each JavaExpression inexpressions
.void
scan
(JavaExpression javaExpression, P p) Scans the JavaExpression.protected Void
visitArrayAccess
(ArrayAccess arrayAccessExpr, P p) Visit anArrayAccess
.protected Void
visitArrayCreation
(ArrayCreation arrayCreationExpr, P p) Visit anArrayCreation
.protected Void
visitBinaryOperation
(BinaryOperation binaryOpExpr, P p) Visit aBinaryOperation
.protected Void
visitClassName
(ClassName classNameExpr, P p) Visit aClassName
.protected Void
visitFieldAccess
(FieldAccess fieldAccessExpr, P p) Visit aFieldAccess
.protected Void
visitFormalParameter
(FormalParameter parameterExpr, P p) Visit aFormalParameter
.protected Void
visitLocalVariable
(LocalVariable localVarExpr, P p) Visit aLocalVariable
.protected Void
visitMethodCall
(MethodCall methodCallExpr, P p) Visit aMethodCall
.protected Void
visitSuperReference
(SuperReference superExpr, P p) Visit aSuperReference
.protected Void
visitThisReference
(ThisReference thisExpr, P p) Visit aThisReference
.protected Void
visitUnaryOperation
(UnaryOperation unaryOpExpr, P p) Visit anUnaryOperation
.protected Void
visitUnknown
(Unknown unknownExpr, P p) Visit anUnknown
.protected Void
visitValueLiteral
(ValueLiteral literalExpr, P p) Visit aValueLiteral
.Methods inherited from class org.checkerframework.dataflow.expression.JavaExpressionVisitor
visit
-
Constructor Details
-
JavaExpressionScanner
public JavaExpressionScanner()
-
-
Method Details
-
scan
Scans the JavaExpression.- Parameters:
javaExpression
- the expression to scanp
- parameter to pass
-
scan
Scans each JavaExpression inexpressions
.- Parameters:
expressions
- a list of JavaExpressions to scanp
- pameter to pass
-
visitArrayAccess
Description copied from class:JavaExpressionVisitor
Visit anArrayAccess
.- Specified by:
visitArrayAccess
in classJavaExpressionVisitor<Void,
P> - Parameters:
arrayAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayAccessExpr
-
visitArrayCreation
Description copied from class:JavaExpressionVisitor
Visit anArrayCreation
.- Specified by:
visitArrayCreation
in classJavaExpressionVisitor<Void,
P> - Parameters:
arrayCreationExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayCreationExpr
-
visitBinaryOperation
Description copied from class:JavaExpressionVisitor
Visit aBinaryOperation
.- Specified by:
visitBinaryOperation
in classJavaExpressionVisitor<Void,
P> - Parameters:
binaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
binaryOpExpr
-
visitClassName
Description copied from class:JavaExpressionVisitor
Visit aClassName
.- Specified by:
visitClassName
in classJavaExpressionVisitor<Void,
P> - Parameters:
classNameExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
classNameExpr
-
visitFormalParameter
Description copied from class:JavaExpressionVisitor
Visit aFormalParameter
.- Specified by:
visitFormalParameter
in classJavaExpressionVisitor<Void,
P> - Parameters:
parameterExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
parameterExpr
-
visitFieldAccess
Description copied from class:JavaExpressionVisitor
Visit aFieldAccess
.- Specified by:
visitFieldAccess
in classJavaExpressionVisitor<Void,
P> - Parameters:
fieldAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
fieldAccessExpr
-
visitLocalVariable
Description copied from class:JavaExpressionVisitor
Visit aLocalVariable
.- Specified by:
visitLocalVariable
in classJavaExpressionVisitor<Void,
P> - Parameters:
localVarExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
localVarExpr
-
visitMethodCall
Description copied from class:JavaExpressionVisitor
Visit aMethodCall
.- Specified by:
visitMethodCall
in classJavaExpressionVisitor<Void,
P> - Parameters:
methodCallExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
methodCallExpr
-
visitThisReference
Description copied from class:JavaExpressionVisitor
Visit aThisReference
.- Specified by:
visitThisReference
in classJavaExpressionVisitor<Void,
P> - Parameters:
thisExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
thisExpr
-
visitSuperReference
Description copied from class:JavaExpressionVisitor
Visit aSuperReference
.- Specified by:
visitSuperReference
in classJavaExpressionVisitor<Void,
P> - Parameters:
superExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
superExpr
-
visitUnaryOperation
Description copied from class:JavaExpressionVisitor
Visit anUnaryOperation
.- Specified by:
visitUnaryOperation
in classJavaExpressionVisitor<Void,
P> - Parameters:
unaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
unaryOpExpr
-
visitUnknown
Description copied from class:JavaExpressionVisitor
Visit anUnknown
.- Specified by:
visitUnknown
in classJavaExpressionVisitor<Void,
P> - Parameters:
unknownExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
unknownExpr
-
visitValueLiteral
Description copied from class:JavaExpressionVisitor
Visit aValueLiteral
.- Specified by:
visitValueLiteral
in classJavaExpressionVisitor<Void,
P> - Parameters:
literalExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
literalExpr
-