Class JavaExpressionScanner<P>
- java.lang.Object
-
- org.checkerframework.dataflow.expression.JavaExpressionVisitor<java.lang.Void,P>
-
- org.checkerframework.dataflow.expression.JavaExpressionScanner<P>
-
- Type Parameters:
P
- the parameter passed to the scan methods
public abstract class JavaExpressionScanner<P> extends JavaExpressionVisitor<java.lang.Void,P>
A simple scanner forJavaExpression
.
-
-
Constructor Summary
Constructors Constructor Description JavaExpressionScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scan(java.util.List<? extends @Nullable JavaExpression> expressions, P p)
Scans each JavaExpression inexpressions
.void
scan(JavaExpression javaExpression, P p)
Scans the JavaExpression.protected java.lang.Void
visitArrayAccess(ArrayAccess arrayAccessExpr, P p)
Visit anArrayAccess
.protected java.lang.Void
visitArrayCreation(ArrayCreation arrayCreationExpr, P p)
Visit anArrayCreation
.protected java.lang.Void
visitBinaryOperation(BinaryOperation binaryOpExpr, P p)
Visit aBinaryOperation
.protected java.lang.Void
visitClassName(ClassName classNameExpr, P p)
Visit aClassName
.protected java.lang.Void
visitFieldAccess(FieldAccess fieldAccessExpr, P p)
Visit aFieldAccess
.protected java.lang.Void
visitFormalParameter(FormalParameter parameterExpr, P p)
Visit aFormalParameter
.protected java.lang.Void
visitLocalVariable(LocalVariable localVarExpr, P p)
Visit aLocalVariable
.protected java.lang.Void
visitMethodCall(MethodCall methodCallExpr, P p)
Visit aMethodCall
.protected java.lang.Void
visitThisReference(ThisReference thisExpr, P p)
Visit aThisReference
.protected java.lang.Void
visitUnaryOperation(UnaryOperation unaryOpExpr, P p)
Visit anUnaryOperation
.protected java.lang.Void
visitUnknown(Unknown unknownExpr, P p)
Visit anUnknown
.protected java.lang.Void
visitValueLiteral(ValueLiteral literalExpr, P p)
Visit aValueLiteral
.-
Methods inherited from class org.checkerframework.dataflow.expression.JavaExpressionVisitor
visit
-
-
-
-
Method Detail
-
scan
public void scan(JavaExpression javaExpression, P p)
Scans the JavaExpression.- Parameters:
javaExpression
- the expression to scanp
- parameter to pass
-
scan
public void scan(java.util.List<? extends @Nullable JavaExpression> expressions, P p)
Scans each JavaExpression inexpressions
.- Parameters:
expressions
- a list of JavaExpressions to scanp
- pameter to pass
-
visitArrayAccess
protected java.lang.Void visitArrayAccess(ArrayAccess arrayAccessExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit anArrayAccess
.- Specified by:
visitArrayAccess
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
arrayAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayAccessExpr
-
visitArrayCreation
protected java.lang.Void visitArrayCreation(ArrayCreation arrayCreationExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit anArrayCreation
.- Specified by:
visitArrayCreation
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
arrayCreationExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
arrayCreationExpr
-
visitBinaryOperation
protected java.lang.Void visitBinaryOperation(BinaryOperation binaryOpExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aBinaryOperation
.- Specified by:
visitBinaryOperation
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
binaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
binaryOpExpr
-
visitClassName
protected java.lang.Void visitClassName(ClassName classNameExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aClassName
.- Specified by:
visitClassName
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
classNameExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
classNameExpr
-
visitFormalParameter
protected java.lang.Void visitFormalParameter(FormalParameter parameterExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aFormalParameter
.- Specified by:
visitFormalParameter
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
parameterExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
parameterExpr
-
visitFieldAccess
protected java.lang.Void visitFieldAccess(FieldAccess fieldAccessExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aFieldAccess
.- Specified by:
visitFieldAccess
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
fieldAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
fieldAccessExpr
-
visitLocalVariable
protected java.lang.Void visitLocalVariable(LocalVariable localVarExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aLocalVariable
.- Specified by:
visitLocalVariable
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
localVarExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
localVarExpr
-
visitMethodCall
protected java.lang.Void visitMethodCall(MethodCall methodCallExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aMethodCall
.- Specified by:
visitMethodCall
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
methodCallExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
methodCallExpr
-
visitThisReference
protected java.lang.Void visitThisReference(ThisReference thisExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aThisReference
.- Specified by:
visitThisReference
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
thisExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
thisExpr
-
visitUnaryOperation
protected java.lang.Void visitUnaryOperation(UnaryOperation unaryOpExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit anUnaryOperation
.- Specified by:
visitUnaryOperation
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
unaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
unaryOpExpr
-
visitUnknown
protected java.lang.Void visitUnknown(Unknown unknownExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit anUnknown
.- Specified by:
visitUnknown
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
unknownExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
unknownExpr
-
visitValueLiteral
protected java.lang.Void visitValueLiteral(ValueLiteral literalExpr, P p)
Description copied from class:JavaExpressionVisitor
Visit aValueLiteral
.- Specified by:
visitValueLiteral
in classJavaExpressionVisitor<java.lang.Void,P>
- Parameters:
literalExpr
- the JavaExpression to visitp
- the parameter to pass to the visit method- Returns:
- the result of visiting the
literalExpr
-
-