Class SimpleTreeVisitor<R,P> 
java.lang.Object
com.sun.source.util.SimpleTreeVisitor<R,P> 
- Type Parameters:
- R- the return type of this visitor's methods. Use- Voidfor visitors that do not need to return results.
- P- the type of the additional parameter to this visitor's methods. Use- Voidfor visitors that do not need an additional parameter.
- All Implemented Interfaces:
- TreeVisitor<R,- P> 
A simple visitor for tree nodes.
- Since:
- 1.6
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final RThe default value, returned by thedefault action.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCreates a visitor, with a DEFAULT_VALUE ofnull.protectedSimpleTreeVisitor(R defaultValue) Creates a visitor, with a specified DEFAULT_VALUE.
- 
Method SummaryModifier and TypeMethodDescriptionprotected RdefaultAction(Tree node, P p) The default action, used by all visit methods that are not overridden.final RInvokes the appropriate visit method specific to the type of the node.final RInvokes the appropriate visit method on each of a sequence of nodes.visitAnnotatedType(AnnotatedTypeTree node, P p) Visits anAnnotatedTypeTreenode.visitAnnotation(AnnotationTree node, P p) Visits anAnnotatedTreenode.visitAnyPattern(AnyPatternTree node, P p) Visits aAnyPatternTreenode.visitArrayAccess(ArrayAccessTree node, P p) Visits anArrayAccessTreenode.visitArrayType(ArrayTypeTree node, P p) Visits anArrayTypeTreenode.visitAssert(AssertTree node, P p) Visits anAssertTreenode.visitAssignment(AssignmentTree node, P p) Visits anAssignmentTreenode.visitBinary(BinaryTree node, P p) Visits aBinaryTreenode.visitBindingPattern(BindingPatternTree node, P p) Visits aBindingPatternTreenode.visitBlock(BlockTree node, P p) Visits aBlockTreenode.visitBreak(BreakTree node, P p) Visits aBreakTreenode.Visits aCaseTreenode.visitCatch(CatchTree node, P p) Visits aCatchTreenode.visitClass(ClassTree node, P p) Visits aClassTreenode.visitCompilationUnit(CompilationUnitTree node, P p) Visits aCompilationUnitTreenode.Visits aCompoundAssignmentTreenode.Visits aConditionalExpressionTreenode.visitConstantCaseLabel(ConstantCaseLabelTree node, P p) Visits aConstantCaseLabelTreenode.visitContinue(ContinueTree node, P p) Visits aContinueTreenode.Visits aDeconstructionPatternTreenode.visitDefaultCaseLabel(DefaultCaseLabelTree node, P p) Visits aDefaultCaseLabelTreenode.visitDoWhileLoop(DoWhileLoopTree node, P p) Visits aDoWhileTreenode.visitEmptyStatement(EmptyStatementTree node, P p) Visits anEmptyStatementTreenode.visitEnhancedForLoop(EnhancedForLoopTree node, P p) Visits anEnhancedForLoopTreenode.visitErroneous(ErroneousTree node, P p) Visits anErroneousTreenode.visitExports(ExportsTree node, P p) Visits anExportsTreenode.Visits anExpressionStatementTreenode.visitForLoop(ForLoopTree node, P p) Visits aForLoopTreenode.visitIdentifier(IdentifierTree node, P p) Visits anIdentifierTreenode.Visits anIfTreenode.visitImport(ImportTree node, P p) Visits anImportTreenode.visitInstanceOf(InstanceOfTree node, P p) Visits anInstanceOfTreenode.visitIntersectionType(IntersectionTypeTree node, P p) Visits anIntersectionTypeTreenode.visitLabeledStatement(LabeledStatementTree node, P p) Visits aLabeledStatementTreenode.visitLambdaExpression(LambdaExpressionTree node, P p) Visits aLambdaExpressionTreenode.visitLiteral(LiteralTree node, P p) Visits aLiteralTreenode.visitMemberReference(MemberReferenceTree node, P p) Visits aMemberReferenceTreenode.visitMemberSelect(MemberSelectTree node, P p) Visits aMemberSelectTreenode.visitMethod(MethodTree node, P p) Visits aMethodTreenode.visitMethodInvocation(MethodInvocationTree node, P p) Visits aMethodInvocationTreenode.visitModifiers(ModifiersTree node, P p) Visits aModifiersTreenode.visitModule(ModuleTree node, P p) Visits aModuleTreenode.visitNewArray(NewArrayTree node, P p) Visits aNewArrayTreenode.visitNewClass(NewClassTree node, P p) Visits aNewClassTreenode.visitOpens(OpensTree node, P p) Visits anOpensTreenode.visitOther(Tree node, P p) Visits an unknown type ofTreenode.visitPackage(PackageTree node, P p) Visits aPackageTreenode.visitParameterizedType(ParameterizedTypeTree node, P p) Visits aParameterizedTypeTreenode.visitParenthesized(ParenthesizedTree node, P p) Visits aParenthesizedTreenode.visitPatternCaseLabel(PatternCaseLabelTree node, P p) Visits aPatternCaseLabelTreenode.visitPrimitiveType(PrimitiveTypeTree node, P p) Visits aPrimitiveTypeTreenode.visitProvides(ProvidesTree node, P p) Visits aProvidesTreenode.visitRequires(RequiresTree node, P p) Visits aRequiresTreenode.visitReturn(ReturnTree node, P p) Visits aReturnTreenode.visitSwitch(SwitchTree node, P p) Visits aSwitchTreenode.visitSwitchExpression(SwitchExpressionTree node, P p) Visits aSwitchExpressionTreenode.visitSynchronized(SynchronizedTree node, P p) Visits aSynchronizedTreenode.visitThrow(ThrowTree node, P p) Visits aThrowTreenode.Visits aTryTreenode.visitTypeCast(TypeCastTree node, P p) Visits aTypeCastTreenode.visitTypeParameter(TypeParameterTree node, P p) Visits aTypeParameterTreenode.visitUnary(UnaryTree node, P p) Visits aUnaryTreenode.visitUnionType(UnionTypeTree node, P p) Visits aUnionTypeTreenode.Visits aUsesTreenode.visitVariable(VariableTree node, P p) Visits aVariableTreenode.visitWhileLoop(WhileLoopTree node, P p) Visits aWhileLoopTreenode.visitWildcard(WildcardTree node, P p) Visits aWildcardTypeTreenode.visitYield(YieldTree node, P p) Visits aYieldTreenode.
- 
Field Details- 
DEFAULT_VALUEThe default value, returned by thedefault action.
 
- 
- 
Constructor Details- 
SimpleTreeVisitorprotected SimpleTreeVisitor()Creates a visitor, with a DEFAULT_VALUE ofnull.
- 
SimpleTreeVisitorCreates a visitor, with a specified DEFAULT_VALUE.- Parameters:
- defaultValue- the default value to be returned by the default action
 
 
- 
- 
Method Details- 
defaultAction
- 
visit
- 
visitInvokes the appropriate visit method on each of a sequence of nodes.- Parameters:
- nodes- the nodes on which to dispatch
- p- 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
 
- 
visitCompilationUnitVisits aCompilationUnitTreenode.- Specified by:
- visitCompilationUnitin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitPackageVisits aPackageTreenode.- Specified by:
- visitPackagein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitImportVisits anImportTreenode.- Specified by:
- visitImportin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitClassVisits aClassTreenode.- Specified by:
- visitClassin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitMethodVisits aMethodTreenode.- Specified by:
- visitMethodin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitVariableVisits aVariableTreenode.- Specified by:
- visitVariablein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitEmptyStatementVisits anEmptyStatementTreenode.- Specified by:
- visitEmptyStatementin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitBlockVisits aBlockTreenode.- Specified by:
- visitBlockin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitDoWhileLoopVisits aDoWhileTreenode.- Specified by:
- visitDoWhileLoopin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitWhileLoopVisits aWhileLoopTreenode.- Specified by:
- visitWhileLoopin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitForLoopVisits aForLoopTreenode.- Specified by:
- visitForLoopin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitEnhancedForLoopVisits anEnhancedForLoopTreenode.- Specified by:
- visitEnhancedForLoopin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitLabeledStatementVisits aLabeledStatementTreenode.- Specified by:
- visitLabeledStatementin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitSwitchVisits aSwitchTreenode.- Specified by:
- visitSwitchin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitSwitchExpressionVisits aSwitchExpressionTreenode.- Specified by:
- visitSwitchExpressionin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 14
 
- 
visitCase
- 
visitSynchronizedVisits aSynchronizedTreenode.- Specified by:
- visitSynchronizedin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitTry
- 
visitCatchVisits aCatchTreenode.- Specified by:
- visitCatchin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitConditionalExpressionVisits aConditionalExpressionTreenode.- Specified by:
- visitConditionalExpressionin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitIf
- 
visitExpressionStatementVisits anExpressionStatementTreenode.- Specified by:
- visitExpressionStatementin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitBreakVisits aBreakTreenode.- Specified by:
- visitBreakin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitContinueVisits aContinueTreenode.- Specified by:
- visitContinuein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitReturnVisits aReturnTreenode.- Specified by:
- visitReturnin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitThrowVisits aThrowTreenode.- Specified by:
- visitThrowin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitAssertVisits anAssertTreenode.- Specified by:
- visitAssertin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitMethodInvocationVisits aMethodInvocationTreenode.- Specified by:
- visitMethodInvocationin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitNewClassVisits aNewClassTreenode.- Specified by:
- visitNewClassin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitNewArrayVisits aNewArrayTreenode.- Specified by:
- visitNewArrayin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitLambdaExpressionVisits aLambdaExpressionTreenode.- Specified by:
- visitLambdaExpressionin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitParenthesizedVisits aParenthesizedTreenode.- Specified by:
- visitParenthesizedin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitAssignmentVisits anAssignmentTreenode.- Specified by:
- visitAssignmentin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitCompoundAssignmentVisits aCompoundAssignmentTreenode.- Specified by:
- visitCompoundAssignmentin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitUnaryVisits aUnaryTreenode.- Specified by:
- visitUnaryin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitBinaryVisits aBinaryTreenode.- Specified by:
- visitBinaryin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitTypeCastVisits aTypeCastTreenode.- Specified by:
- visitTypeCastin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitInstanceOfVisits anInstanceOfTreenode.- Specified by:
- visitInstanceOfin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitAnyPatternVisits aAnyPatternTreenode.- Specified by:
- visitAnyPatternin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 22
 
- 
visitBindingPatternVisits aBindingPatternTreenode.- Specified by:
- visitBindingPatternin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 14
 
- 
visitDefaultCaseLabelVisits aDefaultCaseLabelTreenode.- Specified by:
- visitDefaultCaseLabelin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 21
 
- 
visitConstantCaseLabelVisits aConstantCaseLabelTreenode.- Specified by:
- visitConstantCaseLabelin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 21
 
- 
visitDeconstructionPatternVisits aDeconstructionPatternTreenode.- Specified by:
- visitDeconstructionPatternin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 21
 
- 
visitPatternCaseLabelVisits aPatternCaseLabelTreenode.- Specified by:
- visitPatternCaseLabelin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 21
 
- 
visitArrayAccessVisits anArrayAccessTreenode.- Specified by:
- visitArrayAccessin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitMemberSelectVisits aMemberSelectTreenode.- Specified by:
- visitMemberSelectin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitMemberReferenceVisits aMemberReferenceTreenode.- Specified by:
- visitMemberReferencein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitIdentifierVisits anIdentifierTreenode.- Specified by:
- visitIdentifierin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitLiteralVisits aLiteralTreenode.- Specified by:
- visitLiteralin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitPrimitiveTypeVisits aPrimitiveTypeTreenode.- Specified by:
- visitPrimitiveTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitArrayTypeVisits anArrayTypeTreenode.- Specified by:
- visitArrayTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitParameterizedTypeVisits aParameterizedTypeTreenode.- Specified by:
- visitParameterizedTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitUnionTypeVisits aUnionTypeTreenode.- Specified by:
- visitUnionTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitIntersectionTypeVisits anIntersectionTypeTreenode.- Specified by:
- visitIntersectionTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitTypeParameterVisits aTypeParameterTreenode.- Specified by:
- visitTypeParameterin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitWildcardVisits aWildcardTypeTreenode.- Specified by:
- visitWildcardin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitModifiersVisits aModifiersTreenode.- Specified by:
- visitModifiersin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitAnnotationVisits anAnnotatedTreenode.- Specified by:
- visitAnnotationin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitAnnotatedTypeVisits anAnnotatedTypeTreenode.- Specified by:
- visitAnnotatedTypein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitModuleVisits aModuleTreenode.- Specified by:
- visitModulein interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitExportsVisits anExportsTreenode.- Specified by:
- visitExportsin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitOpensVisits anOpensTreenode.- Specified by:
- visitOpensin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitProvidesVisits aProvidesTreenode.- Specified by:
- visitProvidesin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitRequiresVisits aRequiresTreenode.- Specified by:
- visitRequiresin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitUses
- 
visitErroneousVisits anErroneousTreenode.- Specified by:
- visitErroneousin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitOtherVisits an unknown type ofTreenode. This can occur if the language evolves and new kinds of nodes are added to theTreehierarchy.- Specified by:
- visitOtherin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
- 
visitYieldVisits aYieldTreenode.- Specified by:
- visitYieldin interface- TreeVisitor<R,- P> 
- Implementation Requirements:
- This implementation calls defaultAction.
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
- Since:
- 14
 
 
-