R
- the return type of the visit methodsP
- the parameter passed to the visit methodspublic abstract class JavaExpressionVisitor<R,P> extends Object
JavaExpression
.Constructor and Description |
---|
JavaExpressionVisitor() |
Modifier and Type | Method and Description |
---|---|
R |
visit(JavaExpression javaExpr,
P p)
Visits the given
javaExpr . |
protected abstract R |
visitArrayAccess(ArrayAccess arrayAccessExpr,
P p)
Visit an
ArrayAccess . |
protected abstract R |
visitArrayCreation(ArrayCreation arrayCreationExpr,
P p)
Visit an
ArrayCreation . |
protected abstract R |
visitBinaryOperation(BinaryOperation binaryOpExpr,
P p)
Visit a
BinaryOperation . |
protected abstract R |
visitClassName(ClassName classNameExpr,
P p)
Visit a
ClassName . |
protected abstract R |
visitFieldAccess(FieldAccess fieldAccessExpr,
P p)
Visit a
FieldAccess . |
protected abstract R |
visitFormalParameter(FormalParameter parameterExpr,
P p)
Visit a
FormalParameter . |
protected abstract R |
visitLocalVariable(LocalVariable localVarExpr,
P p)
Visit a
LocalVariable . |
protected abstract R |
visitMethodCall(MethodCall methodCallExpr,
P p)
Visit a
MethodCall . |
protected abstract R |
visitThisReference(ThisReference thisExpr,
P p)
Visit a
ThisReference . |
protected abstract R |
visitUnaryOperation(UnaryOperation unaryOpExpr,
P p)
Visit an
UnaryOperation . |
protected abstract R |
visitUnknown(Unknown unknownExpr,
P p)
Visit an
Unknown . |
protected abstract R |
visitValueLiteral(ValueLiteral literalExpr,
P p)
Visit a
ValueLiteral . |
public R visit(JavaExpression javaExpr, P p)
javaExpr
.javaExpr
- the expression to visitp
- the parameter to pass to the visit methodprotected abstract R visitArrayAccess(ArrayAccess arrayAccessExpr, P p)
ArrayAccess
.arrayAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodarrayAccessExpr
protected abstract R visitArrayCreation(ArrayCreation arrayCreationExpr, P p)
ArrayCreation
.arrayCreationExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodarrayCreationExpr
protected abstract R visitBinaryOperation(BinaryOperation binaryOpExpr, P p)
BinaryOperation
.binaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodbinaryOpExpr
protected abstract R visitClassName(ClassName classNameExpr, P p)
ClassName
.classNameExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodclassNameExpr
protected abstract R visitFieldAccess(FieldAccess fieldAccessExpr, P p)
FieldAccess
.fieldAccessExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodfieldAccessExpr
protected abstract R visitFormalParameter(FormalParameter parameterExpr, P p)
FormalParameter
.parameterExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodparameterExpr
protected abstract R visitLocalVariable(LocalVariable localVarExpr, P p)
LocalVariable
.localVarExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodlocalVarExpr
protected abstract R visitMethodCall(MethodCall methodCallExpr, P p)
MethodCall
.methodCallExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodmethodCallExpr
protected abstract R visitThisReference(ThisReference thisExpr, P p)
ThisReference
.thisExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodthisExpr
protected abstract R visitUnaryOperation(UnaryOperation unaryOpExpr, P p)
UnaryOperation
.unaryOpExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodunaryOpExpr
protected abstract R visitUnknown(Unknown unknownExpr, P p)
Unknown
.unknownExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodunknownExpr
protected abstract R visitValueLiteral(ValueLiteral literalExpr, P p)
ValueLiteral
.literalExpr
- the JavaExpression to visitp
- the parameter to pass to the visit methodliteralExpr