R
- return type of the visitorP
- parameter type of the visitorpublic abstract class AbstractNodeVisitor<R,P> extends Object implements NodeVisitor<R,P>
visitValueLiteral
method, that is called for every ValueLiteralNode
.
This is useful to implement a visitor that performs the same operation (e.g., nothing) for
most Node
s and only has special behavior for a few.
Constructor and Description |
---|
AbstractNodeVisitor() |
public R visitValueLiteral(ValueLiteralNode n, P p)
public R visitShortLiteral(ShortLiteralNode n, P p)
visitShortLiteral
in interface NodeVisitor<R,P>
public R visitIntegerLiteral(IntegerLiteralNode n, P p)
visitIntegerLiteral
in interface NodeVisitor<R,P>
public R visitLongLiteral(LongLiteralNode n, P p)
visitLongLiteral
in interface NodeVisitor<R,P>
public R visitFloatLiteral(FloatLiteralNode n, P p)
visitFloatLiteral
in interface NodeVisitor<R,P>
public R visitDoubleLiteral(DoubleLiteralNode n, P p)
visitDoubleLiteral
in interface NodeVisitor<R,P>
public R visitBooleanLiteral(BooleanLiteralNode n, P p)
visitBooleanLiteral
in interface NodeVisitor<R,P>
public R visitCharacterLiteral(CharacterLiteralNode n, P p)
visitCharacterLiteral
in interface NodeVisitor<R,P>
public R visitStringLiteral(StringLiteralNode n, P p)
visitStringLiteral
in interface NodeVisitor<R,P>
public R visitNullLiteral(NullLiteralNode n, P p)
visitNullLiteral
in interface NodeVisitor<R,P>
public R visitNumericalMinus(NumericalMinusNode n, P p)
visitNumericalMinus
in interface NodeVisitor<R,P>
public R visitNumericalPlus(NumericalPlusNode n, P p)
visitNumericalPlus
in interface NodeVisitor<R,P>
public R visitBitwiseComplement(BitwiseComplementNode n, P p)
visitBitwiseComplement
in interface NodeVisitor<R,P>
public R visitNullChk(NullChkNode n, P p)
visitNullChk
in interface NodeVisitor<R,P>
public R visitStringConcatenate(StringConcatenateNode n, P p)
visitStringConcatenate
in interface NodeVisitor<R,P>
public R visitNumericalAddition(NumericalAdditionNode n, P p)
visitNumericalAddition
in interface NodeVisitor<R,P>
public R visitNumericalSubtraction(NumericalSubtractionNode n, P p)
visitNumericalSubtraction
in interface NodeVisitor<R,P>
public R visitNumericalMultiplication(NumericalMultiplicationNode n, P p)
visitNumericalMultiplication
in interface NodeVisitor<R,P>
public R visitIntegerDivision(IntegerDivisionNode n, P p)
visitIntegerDivision
in interface NodeVisitor<R,P>
public R visitFloatingDivision(FloatingDivisionNode n, P p)
visitFloatingDivision
in interface NodeVisitor<R,P>
public R visitIntegerRemainder(IntegerRemainderNode n, P p)
visitIntegerRemainder
in interface NodeVisitor<R,P>
public R visitFloatingRemainder(FloatingRemainderNode n, P p)
visitFloatingRemainder
in interface NodeVisitor<R,P>
public R visitLeftShift(LeftShiftNode n, P p)
visitLeftShift
in interface NodeVisitor<R,P>
public R visitSignedRightShift(SignedRightShiftNode n, P p)
visitSignedRightShift
in interface NodeVisitor<R,P>
public R visitUnsignedRightShift(UnsignedRightShiftNode n, P p)
visitUnsignedRightShift
in interface NodeVisitor<R,P>
public R visitBitwiseAnd(BitwiseAndNode n, P p)
visitBitwiseAnd
in interface NodeVisitor<R,P>
public R visitBitwiseOr(BitwiseOrNode n, P p)
visitBitwiseOr
in interface NodeVisitor<R,P>
public R visitBitwiseXor(BitwiseXorNode n, P p)
visitBitwiseXor
in interface NodeVisitor<R,P>
public R visitStringConcatenateAssignment(StringConcatenateAssignmentNode n, P p)
visitStringConcatenateAssignment
in interface NodeVisitor<R,P>
public R visitLessThan(LessThanNode n, P p)
visitLessThan
in interface NodeVisitor<R,P>
public R visitLessThanOrEqual(LessThanOrEqualNode n, P p)
visitLessThanOrEqual
in interface NodeVisitor<R,P>
public R visitGreaterThan(GreaterThanNode n, P p)
visitGreaterThan
in interface NodeVisitor<R,P>
public R visitGreaterThanOrEqual(GreaterThanOrEqualNode n, P p)
visitGreaterThanOrEqual
in interface NodeVisitor<R,P>
public R visitEqualTo(EqualToNode n, P p)
visitEqualTo
in interface NodeVisitor<R,P>
public R visitNotEqual(NotEqualNode n, P p)
visitNotEqual
in interface NodeVisitor<R,P>
public R visitConditionalAnd(ConditionalAndNode n, P p)
visitConditionalAnd
in interface NodeVisitor<R,P>
public R visitConditionalOr(ConditionalOrNode n, P p)
visitConditionalOr
in interface NodeVisitor<R,P>
public R visitConditionalNot(ConditionalNotNode n, P p)
visitConditionalNot
in interface NodeVisitor<R,P>
public R visitTernaryExpression(TernaryExpressionNode n, P p)
visitTernaryExpression
in interface NodeVisitor<R,P>
public R visitAssignment(AssignmentNode n, P p)
visitAssignment
in interface NodeVisitor<R,P>
public R visitLocalVariable(LocalVariableNode n, P p)
visitLocalVariable
in interface NodeVisitor<R,P>
public R visitVariableDeclaration(VariableDeclarationNode n, P p)
visitVariableDeclaration
in interface NodeVisitor<R,P>
public R visitFieldAccess(FieldAccessNode n, P p)
visitFieldAccess
in interface NodeVisitor<R,P>
public R visitMethodAccess(MethodAccessNode n, P p)
visitMethodAccess
in interface NodeVisitor<R,P>
public R visitArrayAccess(ArrayAccessNode n, P p)
visitArrayAccess
in interface NodeVisitor<R,P>
public R visitThisLiteral(ThisLiteralNode n, P p)
public R visitImplicitThisLiteral(ImplicitThisLiteralNode n, P p)
visitImplicitThisLiteral
in interface NodeVisitor<R,P>
public R visitExplicitThisLiteral(ExplicitThisLiteralNode n, P p)
visitExplicitThisLiteral
in interface NodeVisitor<R,P>
public R visitSuper(SuperNode n, P p)
visitSuper
in interface NodeVisitor<R,P>
public R visitReturn(ReturnNode n, P p)
visitReturn
in interface NodeVisitor<R,P>
public R visitStringConversion(StringConversionNode n, P p)
visitStringConversion
in interface NodeVisitor<R,P>
public R visitNarrowingConversion(NarrowingConversionNode n, P p)
visitNarrowingConversion
in interface NodeVisitor<R,P>
public R visitWideningConversion(WideningConversionNode n, P p)
visitWideningConversion
in interface NodeVisitor<R,P>
public R visitInstanceOf(InstanceOfNode n, P p)
visitInstanceOf
in interface NodeVisitor<R,P>
public R visitTypeCast(TypeCastNode n, P p)
visitTypeCast
in interface NodeVisitor<R,P>
public R visitAssertionError(AssertionErrorNode n, P p)
visitAssertionError
in interface NodeVisitor<R,P>
public R visitSynchronized(SynchronizedNode n, P p)
visitSynchronized
in interface NodeVisitor<R,P>
public R visitThrow(ThrowNode n, P p)
visitThrow
in interface NodeVisitor<R,P>
public R visitMethodInvocation(MethodInvocationNode n, P p)
visitMethodInvocation
in interface NodeVisitor<R,P>
public R visitObjectCreation(ObjectCreationNode n, P p)
visitObjectCreation
in interface NodeVisitor<R,P>
public R visitMemberReference(FunctionalInterfaceNode n, P p)
visitMemberReference
in interface NodeVisitor<R,P>
public R visitArrayCreation(ArrayCreationNode n, P p)
visitArrayCreation
in interface NodeVisitor<R,P>
public R visitArrayType(ArrayTypeNode n, P p)
visitArrayType
in interface NodeVisitor<R,P>
public R visitPrimitiveType(PrimitiveTypeNode n, P p)
visitPrimitiveType
in interface NodeVisitor<R,P>
public R visitClassName(ClassNameNode n, P p)
visitClassName
in interface NodeVisitor<R,P>
public R visitPackageName(PackageNameNode n, P p)
visitPackageName
in interface NodeVisitor<R,P>
public R visitParameterizedType(ParameterizedTypeNode n, P p)
visitParameterizedType
in interface NodeVisitor<R,P>
public R visitMarker(MarkerNode n, P p)
visitMarker
in interface NodeVisitor<R,P>