P
- the parameter passed to the scan methodspublic abstract class JavaExpressionScanner<P> extends JavaExpressionVisitor<Void,P>
JavaExpression
.Constructor and Description |
---|
JavaExpressionScanner() |
Modifier and Type | Method and Description |
---|---|
void |
scan(JavaExpression javaExpression,
P p)
Scans the JavaExpression.
|
void |
scan(List<? extends JavaExpression> expressions,
P p)
Scans each JavaExpression in
expressions . |
protected Void |
visitArrayAccess(ArrayAccess arrayAccessExpr,
P p)
Visit an
ArrayAccess . |
protected Void |
visitArrayCreation(ArrayCreation arrayCreationExpr,
P p)
Visit an
ArrayCreation . |
protected Void |
visitBinaryOperation(BinaryOperation binaryOpExpr,
P p)
Visit a
BinaryOperation . |
protected Void |
visitClassName(ClassName classNameExpr,
P p)
Visit a
ClassName . |
protected Void |
visitFieldAccess(FieldAccess fieldAccessExpr,
P p)
Visit a
FieldAccess . |
protected Void |
visitFormalParameter(FormalParameter parameterExpr,
P p)
Visit a
FormalParameter . |
protected Void |
visitLocalVariable(LocalVariable localVarExpr,
P p)
Visit a
LocalVariable . |
protected Void |
visitMethodCall(MethodCall methodCallExpr,
P p)
Visit a
MethodCall . |
protected Void |
visitThisReference(ThisReference thisExpr,
P p)
Visit a
ThisReference . |
protected Void |
visitUnaryOperation(UnaryOperation unaryOpExpr,
P p)
Visit an
UnaryOperation . |
protected Void |
visitUnknown(Unknown unknownExpr,
P p)
Visit an
Unknown . |
protected Void |
visitValueLiteral(ValueLiteral literalExpr,
P p)
Visit a
ValueLiteral . |
visit
public void scan(JavaExpression javaExpression, P p)
javaExpression
- the expression to scanp
- parameter to passpublic void scan(List<? extends JavaExpression> expressions, P p)
expressions
.expressions
- a list of JavaExpressions to scanp
- pameter to passprotected Void visitArrayAccess(ArrayAccess arrayAccessExpr, P p)
JavaExpressionVisitor
ArrayAccess
.visitArrayAccess
in class JavaExpressionVisitor<Void,P>
arrayAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodarrayAccessExpr
protected Void visitArrayCreation(ArrayCreation arrayCreationExpr, P p)
JavaExpressionVisitor
ArrayCreation
.visitArrayCreation
in class JavaExpressionVisitor<Void,P>
arrayCreationExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodarrayCreationExpr
protected Void visitBinaryOperation(BinaryOperation binaryOpExpr, P p)
JavaExpressionVisitor
BinaryOperation
.visitBinaryOperation
in class JavaExpressionVisitor<Void,P>
binaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodbinaryOpExpr
protected Void visitClassName(ClassName classNameExpr, P p)
JavaExpressionVisitor
ClassName
.visitClassName
in class JavaExpressionVisitor<Void,P>
classNameExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodclassNameExpr
protected Void visitFormalParameter(FormalParameter parameterExpr, P p)
JavaExpressionVisitor
FormalParameter
.visitFormalParameter
in class JavaExpressionVisitor<Void,P>
parameterExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodparameterExpr
protected Void visitFieldAccess(FieldAccess fieldAccessExpr, P p)
JavaExpressionVisitor
FieldAccess
.visitFieldAccess
in class JavaExpressionVisitor<Void,P>
fieldAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodfieldAccessExpr
protected Void visitLocalVariable(LocalVariable localVarExpr, P p)
JavaExpressionVisitor
LocalVariable
.visitLocalVariable
in class JavaExpressionVisitor<Void,P>
localVarExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodlocalVarExpr
protected Void visitMethodCall(MethodCall methodCallExpr, P p)
JavaExpressionVisitor
MethodCall
.visitMethodCall
in class JavaExpressionVisitor<Void,P>
methodCallExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodmethodCallExpr
protected Void visitThisReference(ThisReference thisExpr, P p)
JavaExpressionVisitor
ThisReference
.visitThisReference
in class JavaExpressionVisitor<Void,P>
thisExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodthisExpr
protected Void visitUnaryOperation(UnaryOperation unaryOpExpr, P p)
JavaExpressionVisitor
UnaryOperation
.visitUnaryOperation
in class JavaExpressionVisitor<Void,P>
unaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodunaryOpExpr
protected Void visitUnknown(Unknown unknownExpr, P p)
JavaExpressionVisitor
Unknown
.visitUnknown
in class JavaExpressionVisitor<Void,P>
unknownExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodunknownExpr
protected Void visitValueLiteral(ValueLiteral literalExpr, P p)
JavaExpressionVisitor
ValueLiteral
.visitValueLiteral
in class JavaExpressionVisitor<Void,P>
literalExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodliteralExpr