java.lang.Object
com.sun.source.util.SimpleTreeVisitor<R,P>
- Type Parameters:
R
- the return type of this visitor's methods. UseVoid
for visitors that do not need to return results.P
- the type of the additional parameter to this visitor's methods. UseVoid
for visitors that do not need an additional parameter.
- All Implemented Interfaces:
TreeVisitor<R,
P>
A simple visitor for tree nodes.
- Since:
- 1.6
-
Field Summary
Modifier and TypeFieldDescriptionprotected final R
The default value, returned by thedefault action
. -
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a visitor, with a DEFAULT_VALUE ofnull
.protected
SimpleTreeVisitor
(R defaultValue) Creates a visitor, with a specified DEFAULT_VALUE. -
Method Summary
Modifier and TypeMethodDescriptionprotected R
defaultAction
(Tree node, P p) The default action, used by all visit methods that are not overridden.final R
Invokes the appropriate visit method specific to the type of the node.final R
Invokes the appropriate visit method on each of a sequence of nodes.visitAnnotatedType
(AnnotatedTypeTree node, P p) Visits anAnnotatedTypeTree
node.visitAnnotation
(AnnotationTree node, P p) Visits anAnnotatedTree
node.visitArrayAccess
(ArrayAccessTree node, P p) Visits anArrayAccessTree
node.visitArrayType
(ArrayTypeTree node, P p) Visits anArrayTypeTree
node.visitAssert
(AssertTree node, P p) Visits anAssertTree
node.visitAssignment
(AssignmentTree node, P p) Visits anAssignmentTree
node.visitBinary
(BinaryTree node, P p) Visits aBinaryTree
node.visitBindingPattern
(BindingPatternTree node, P p) Visits aBindingPatternTree
node.visitBlock
(BlockTree node, P p) Visits aBlockTree
node.visitBreak
(BreakTree node, P p) Visits aBreakTree
node.Visits aCaseTree
node.visitCatch
(CatchTree node, P p) Visits aCatchTree
node.visitClass
(ClassTree node, P p) Visits aClassTree
node.visitCompilationUnit
(CompilationUnitTree node, P p) Visits aCompilationUnitTree
node.Visits aCompoundAssignmentTree
node.Visits aConditionalExpressionTree
node.Preview.Visits aConstantCaseLabelTree
node.visitContinue
(ContinueTree node, P p) Visits aContinueTree
node.Preview.Visits aDeconstructionPatternTree
node.Preview.Visits aDefaultCaseLabelTree
node.visitDoWhileLoop
(DoWhileLoopTree node, P p) Visits aDoWhileTree
node.visitEmptyStatement
(EmptyStatementTree node, P p) Visits anEmptyStatementTree
node.visitEnhancedForLoop
(EnhancedForLoopTree node, P p) Visits anEnhancedForLoopTree
node.visitErroneous
(ErroneousTree node, P p) Visits anErroneousTree
node.visitExports
(ExportsTree node, P p) Visits anExportsTree
node.Visits anExpressionStatementTree
node.visitForLoop
(ForLoopTree node, P p) Visits aForLoopTree
node.visitIdentifier
(IdentifierTree node, P p) Visits anIdentifierTree
node.Visits anIfTree
node.visitImport
(ImportTree node, P p) Visits anImportTree
node.visitInstanceOf
(InstanceOfTree node, P p) Visits anInstanceOfTree
node.visitIntersectionType
(IntersectionTypeTree node, P p) Visits anIntersectionTypeTree
node.visitLabeledStatement
(LabeledStatementTree node, P p) Visits aLabeledStatementTree
node.visitLambdaExpression
(LambdaExpressionTree node, P p) Visits aLambdaExpressionTree
node.visitLiteral
(LiteralTree node, P p) Visits aLiteralTree
node.visitMemberReference
(MemberReferenceTree node, P p) Visits aMemberReferenceTree
node.visitMemberSelect
(MemberSelectTree node, P p) Visits aMemberSelectTree
node.visitMethod
(MethodTree node, P p) Visits aMethodTree
node.visitMethodInvocation
(MethodInvocationTree node, P p) Visits aMethodInvocationTree
node.visitModifiers
(ModifiersTree node, P p) Visits aModifiersTree
node.visitModule
(ModuleTree node, P p) Visits aModuleTree
node.visitNewArray
(NewArrayTree node, P p) Visits aNewArrayTree
node.visitNewClass
(NewClassTree node, P p) Visits aNewClassTree
node.visitOpens
(OpensTree node, P p) Visits anOpensTree
node.visitOther
(Tree node, P p) Visits an unknown type ofTree
node.visitPackage
(PackageTree node, P p) Visits aPackageTree
node.visitParameterizedType
(ParameterizedTypeTree node, P p) Visits aParameterizedTypeTree
node.visitParenthesized
(ParenthesizedTree node, P p) Visits aParenthesizedTree
node.Preview.Visits aParenthesizedPatternTree
node.Preview.Visits aPatternCaseLabelTree
node.visitPrimitiveType
(PrimitiveTypeTree node, P p) Visits aPrimitiveTypeTree
node.visitProvides
(ProvidesTree node, P p) Visits aProvidesTree
node.visitRequires
(RequiresTree node, P p) Visits aRequiresTree
node.visitReturn
(ReturnTree node, P p) Visits aReturnTree
node.Preview.Visits a StringTemplateTree node.visitSwitch
(SwitchTree node, P p) Visits aSwitchTree
node.visitSwitchExpression
(SwitchExpressionTree node, P p) Visits aSwitchExpressionTree
node.visitSynchronized
(SynchronizedTree node, P p) Visits aSynchronizedTree
node.visitThrow
(ThrowTree node, P p) Visits aThrowTree
node.Visits aTryTree
node.visitTypeCast
(TypeCastTree node, P p) Visits aTypeCastTree
node.visitTypeParameter
(TypeParameterTree node, P p) Visits aTypeParameterTree
node.visitUnary
(UnaryTree node, P p) Visits aUnaryTree
node.visitUnionType
(UnionTypeTree node, P p) Visits aUnionTypeTree
node.Visits aUsesTree
node.visitVariable
(VariableTree node, P p) Visits aVariableTree
node.visitWhileLoop
(WhileLoopTree node, P p) Visits aWhileLoopTree
node.visitWildcard
(WildcardTree node, P p) Visits aWildcardTypeTree
node.visitYield
(YieldTree node, P p) Visits aYieldTree
node.
-
Field Details
-
DEFAULT_VALUE
The default value, returned by thedefault action
.
-
-
Constructor Details
-
SimpleTreeVisitor
protected SimpleTreeVisitor()Creates a visitor, with a DEFAULT_VALUE ofnull
. -
SimpleTreeVisitor
Creates a visitor, with a specified DEFAULT_VALUE.- Parameters:
defaultValue
- the default value to be returned by the default action
-
-
Method Details
-
defaultAction
The default action, used by all visit methods that are not overridden.- Parameters:
node
- the node being visitedp
- the parameter value passed to the visit method- Returns:
- the result value to be returned from the visit method
-
visit
Invokes the appropriate visit method specific to the type of the node.- Parameters:
node
- the node on which to dispatchp
- a parameter to be passed to the appropriate visit method- Returns:
- the value returns from the appropriate visit method
-
visit
Invokes the appropriate visit method on each of a sequence of nodes.- Parameters:
nodes
- the nodes on which to dispatchp
- a parameter value to be passed to each appropriate visit method- Returns:
- the value return from the last of the visit methods, or null if none were called
-
visitCompilationUnit
Visits aCompilationUnitTree
node.- Specified by:
visitCompilationUnit
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitPackage
Visits aPackageTree
node.- Specified by:
visitPackage
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitImport
Visits anImportTree
node.- Specified by:
visitImport
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitClass
Visits aClassTree
node.- Specified by:
visitClass
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitMethod
Visits aMethodTree
node.- Specified by:
visitMethod
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitVariable
Visits aVariableTree
node.- Specified by:
visitVariable
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitEmptyStatement
Visits anEmptyStatementTree
node.- Specified by:
visitEmptyStatement
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitBlock
Visits aBlockTree
node.- Specified by:
visitBlock
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitDoWhileLoop
Visits aDoWhileTree
node.- Specified by:
visitDoWhileLoop
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitWhileLoop
Visits aWhileLoopTree
node.- Specified by:
visitWhileLoop
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitForLoop
Visits aForLoopTree
node.- Specified by:
visitForLoop
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitEnhancedForLoop
Visits anEnhancedForLoopTree
node.- Specified by:
visitEnhancedForLoop
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitLabeledStatement
Visits aLabeledStatementTree
node.- Specified by:
visitLabeledStatement
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitSwitch
Visits aSwitchTree
node.- Specified by:
visitSwitch
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitSwitchExpression
Visits aSwitchExpressionTree
node.- Specified by:
visitSwitchExpression
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitCase
Visits aCaseTree
node.- Specified by:
visitCase
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitSynchronized
Visits aSynchronizedTree
node.- Specified by:
visitSynchronized
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitTry
Visits aTryTree
node.- Specified by:
visitTry
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitCatch
Visits aCatchTree
node.- Specified by:
visitCatch
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitConditionalExpression
Visits aConditionalExpressionTree
node.- Specified by:
visitConditionalExpression
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitIf
Visits anIfTree
node.- Specified by:
visitIf
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitExpressionStatement
Visits anExpressionStatementTree
node.- Specified by:
visitExpressionStatement
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitBreak
Visits aBreakTree
node.- Specified by:
visitBreak
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitContinue
Visits aContinueTree
node.- Specified by:
visitContinue
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitReturn
Visits aReturnTree
node.- Specified by:
visitReturn
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitThrow
Visits aThrowTree
node.- Specified by:
visitThrow
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitAssert
Visits anAssertTree
node.- Specified by:
visitAssert
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitMethodInvocation
Visits aMethodInvocationTree
node.- Specified by:
visitMethodInvocation
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitNewClass
Visits aNewClassTree
node.- Specified by:
visitNewClass
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitNewArray
Visits aNewArrayTree
node.- Specified by:
visitNewArray
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitLambdaExpression
Visits aLambdaExpressionTree
node.- Specified by:
visitLambdaExpression
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitParenthesized
Visits aParenthesizedTree
node.- Specified by:
visitParenthesized
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitAssignment
Visits anAssignmentTree
node.- Specified by:
visitAssignment
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitCompoundAssignment
Visits aCompoundAssignmentTree
node.- Specified by:
visitCompoundAssignment
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitUnary
Visits aUnaryTree
node.- Specified by:
visitUnary
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitBinary
Visits aBinaryTree
node.- Specified by:
visitBinary
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitTypeCast
Visits aTypeCastTree
node.- Specified by:
visitTypeCast
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitInstanceOf
Visits anInstanceOfTree
node.- Specified by:
visitInstanceOf
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitStringTemplate
visitStringTemplate
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits a StringTemplateTree node. This implementation callsdefaultAction
.- Specified by:
visitStringTemplate
in interfaceTreeVisitor<R,
P> - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitBindingPattern
Visits aBindingPatternTree
node.- Specified by:
visitBindingPattern
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 14
-
visitDefaultCaseLabel
visitDefaultCaseLabel
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits aDefaultCaseLabelTree
node.- Specified by:
visitDefaultCaseLabel
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 17
-
visitConstantCaseLabel
visitConstantCaseLabel
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits aConstantCaseLabelTree
node.- Specified by:
visitConstantCaseLabel
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 19
-
visitDeconstructionPattern
visitDeconstructionPattern
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits aDeconstructionPatternTree
node.- Specified by:
visitDeconstructionPattern
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 19
-
visitPatternCaseLabel
visitPatternCaseLabel
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits aPatternCaseLabelTree
node.- Specified by:
visitPatternCaseLabel
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 19
-
visitArrayAccess
Visits anArrayAccessTree
node.- Specified by:
visitArrayAccess
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitMemberSelect
Visits aMemberSelectTree
node.- Specified by:
visitMemberSelect
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitParenthesizedPattern
visitParenthesizedPattern
is a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Visits aParenthesizedPatternTree
node.- Specified by:
visitParenthesizedPattern
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
- Since:
- 17
-
visitMemberReference
Visits aMemberReferenceTree
node.- Specified by:
visitMemberReference
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitIdentifier
Visits anIdentifierTree
node.- Specified by:
visitIdentifier
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitLiteral
Visits aLiteralTree
node.- Specified by:
visitLiteral
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitPrimitiveType
Visits aPrimitiveTypeTree
node.- Specified by:
visitPrimitiveType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitArrayType
Visits anArrayTypeTree
node.- Specified by:
visitArrayType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitParameterizedType
Visits aParameterizedTypeTree
node.- Specified by:
visitParameterizedType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitUnionType
Visits aUnionTypeTree
node.- Specified by:
visitUnionType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitIntersectionType
Visits anIntersectionTypeTree
node.- Specified by:
visitIntersectionType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitTypeParameter
Visits aTypeParameterTree
node.- Specified by:
visitTypeParameter
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitWildcard
Visits aWildcardTypeTree
node.- Specified by:
visitWildcard
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitModifiers
Visits aModifiersTree
node.- Specified by:
visitModifiers
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitAnnotation
Visits anAnnotatedTree
node.- Specified by:
visitAnnotation
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitAnnotatedType
Visits anAnnotatedTypeTree
node.- Specified by:
visitAnnotatedType
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitModule
Visits aModuleTree
node.- Specified by:
visitModule
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitExports
Visits anExportsTree
node.- Specified by:
visitExports
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitOpens
Visits anOpensTree
node.- Specified by:
visitOpens
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitProvides
Visits aProvidesTree
node.- Specified by:
visitProvides
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitRequires
Visits aRequiresTree
node.- Specified by:
visitRequires
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitUses
Visits aUsesTree
node.- Specified by:
visitUses
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitErroneous
Visits anErroneousTree
node.- Specified by:
visitErroneous
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitOther
Visits an unknown type ofTree
node. This can occur if the language evolves and new kinds of nodes are added to theTree
hierarchy.- Specified by:
visitOther
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-
visitYield
Visits aYieldTree
node.- Specified by:
visitYield
in interfaceTreeVisitor<R,
P> - Implementation Requirements:
- This implementation calls
defaultAction
. - Parameters:
node
- the node being visitedp
- a parameter value- Returns:
- the result of
defaultAction
-