- 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>
 
 
 public class SimpleTreeVisitor<R,P> extends Object implements TreeVisitor<R,P> A simple visitor for tree nodes.- Since:
- 1.6
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected RDEFAULT_VALUEThe default value, returned by thedefault action.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSimpleTreeVisitor()Creates a visitor, with a DEFAULT_VALUE ofnull.protectedSimpleTreeVisitor(R defaultValue)Creates a visitor, with a specified DEFAULT_VALUE.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RdefaultAction(Tree node, P p)The default action, used by all visit methods that are not overridden.Rvisit(Tree node, P p)Invokes the appropriate visit method specific to the type of the node.Rvisit(Iterable<? extends Tree> nodes, P p)Invokes the appropriate visit method on each of a sequence of nodes.RvisitAnnotatedType(AnnotatedTypeTree node, P p)Visits an AnnotatedTypeTree node.RvisitAnnotation(AnnotationTree node, P p)Visits an AnnotatedTree node.RvisitArrayAccess(ArrayAccessTree node, P p)Visits an ArrayAccessTree node.RvisitArrayType(ArrayTypeTree node, P p)Visits an ArrayTypeTree node.RvisitAssert(AssertTree node, P p)Visits an AssertTree node.RvisitAssignment(AssignmentTree node, P p)Visits an AssignmentTree node.RvisitBinary(BinaryTree node, P p)Visits a BinaryTree node.RvisitBlock(BlockTree node, P p)Visits a BlockTree node.RvisitBreak(BreakTree node, P p)Visits a BreakTree node.RvisitCase(CaseTree node, P p)Visits a CaseTree node.RvisitCatch(CatchTree node, P p)Visits a CatchTree node.RvisitClass(ClassTree node, P p)Visits a ClassTree node.RvisitCompilationUnit(CompilationUnitTree node, P p)Visits a CompilationUnitTree node.RvisitCompoundAssignment(CompoundAssignmentTree node, P p)Visits a CompoundAssignmentTree node.RvisitConditionalExpression(ConditionalExpressionTree node, P p)Visits a ConditionalExpressionTree node.RvisitContinue(ContinueTree node, P p)Visits a ContinueTree node.RvisitDoWhileLoop(DoWhileLoopTree node, P p)Visits a DoWhileTree node.RvisitEmptyStatement(EmptyStatementTree node, P p)Visits an EmptyStatementTree node.RvisitEnhancedForLoop(EnhancedForLoopTree node, P p)Visits an EnhancedForLoopTree node.RvisitErroneous(ErroneousTree node, P p)Visits an ErroneousTree node.RvisitExports(ExportsTree node, P p)Visits an ExportsTree node.RvisitExpressionStatement(ExpressionStatementTree node, P p)Visits an ExpressionStatementTree node.RvisitForLoop(ForLoopTree node, P p)Visits a ForLoopTree node.RvisitIdentifier(IdentifierTree node, P p)Visits an IdentifierTree node.RvisitIf(IfTree node, P p)Visits an IfTree node.RvisitImport(ImportTree node, P p)Visits an ImportTree node.RvisitInstanceOf(InstanceOfTree node, P p)Visits an InstanceOfTree node.RvisitIntersectionType(IntersectionTypeTree node, P p)Visits an IntersectionTypeTree node.RvisitLabeledStatement(LabeledStatementTree node, P p)Visits a LabeledStatementTree node.RvisitLambdaExpression(LambdaExpressionTree node, P p)Visits a LambdaExpressionTree node.RvisitLiteral(LiteralTree node, P p)Visits a LiteralTree node.RvisitMemberReference(MemberReferenceTree node, P p)Visits a MemberReferenceTree node.RvisitMemberSelect(MemberSelectTree node, P p)Visits a MemberSelectTree node.RvisitMethod(MethodTree node, P p)Visits a MethodTree node.RvisitMethodInvocation(MethodInvocationTree node, P p)Visits a MethodInvocationTree node.RvisitModifiers(ModifiersTree node, P p)Visits a ModifiersTree node.RvisitModule(ModuleTree node, P p)Visits a ModuleTree node.RvisitNewArray(NewArrayTree node, P p)Visits a NewArrayTree node.RvisitNewClass(NewClassTree node, P p)Visits a NewClassTree node.RvisitOpens(OpensTree node, P p)Visits an OpensTree node.RvisitOther(Tree node, P p)Visits an unknown type of Tree node.RvisitPackage(PackageTree node, P p)Visits a PackageTree node.RvisitParameterizedType(ParameterizedTypeTree node, P p)Visits a ParameterizedTypeTree node.RvisitParenthesized(ParenthesizedTree node, P p)Visits a ParenthesizedTree node.RvisitPrimitiveType(PrimitiveTypeTree node, P p)Visits a PrimitiveTypeTree node.RvisitProvides(ProvidesTree node, P p)Visits a ProvidesTree node.RvisitRequires(RequiresTree node, P p)Visits a RequiresTree node.RvisitReturn(ReturnTree node, P p)Visits a ReturnTree node.RvisitSwitch(SwitchTree node, P p)Visits a SwitchTree node.RvisitSynchronized(SynchronizedTree node, P p)Visits a SynchronizedTree node.RvisitThrow(ThrowTree node, P p)Visits a ThrowTree node.RvisitTry(TryTree node, P p)Visits a TryTree node.RvisitTypeCast(TypeCastTree node, P p)Visits a TypeCastTree node.RvisitTypeParameter(TypeParameterTree node, P p)Visits a TypeParameterTree node.RvisitUnary(UnaryTree node, P p)Visits a UnaryTree node.RvisitUnionType(UnionTypeTree node, P p)Visits a UnionTypeTree node.RvisitUses(UsesTree node, P p)Visits a UsesTree node.RvisitVariable(VariableTree node, P p)Visits a VariableTree node.RvisitWhileLoop(WhileLoopTree node, P p)Visits a WhileLoopTree node.RvisitWildcard(WildcardTree node, P p)Visits a WildcardTypeTree node.
 
- 
- 
- 
Field Detail- 
DEFAULT_VALUEprotected final R DEFAULT_VALUE The default value, returned by thedefault action.
 
- 
 - 
Constructor Detail- 
SimpleTreeVisitorprotected SimpleTreeVisitor() Creates a visitor, with a DEFAULT_VALUE ofnull.
 - 
SimpleTreeVisitorprotected SimpleTreeVisitor(R defaultValue) Creates a visitor, with a specified DEFAULT_VALUE.- Parameters:
- defaultValue- the default value to be returned by the default action.
 
 
- 
 - 
Method Detail- 
defaultActionprotected R defaultAction(Tree node, P p) The default action, used by all visit methods that are not overridden.- Parameters:
- node- the node being visited
- p- the parameter value passed to the visit method
- Returns:
- the result value to be returned from the visit method
 
 - 
visitpublic final R visit(Tree node, P p) Invokes the appropriate visit method specific to the type of the node.- Parameters:
- node- the node on which to dispatch
- p- a parameter to be passed to the appropriate visit method
- Returns:
- the value returns from the appropriate visit method
 
 - 
visitpublic final R visit(Iterable<? extends Tree> nodes, P p) Invokes 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.
 
 - 
visitCompilationUnitpublic R visitCompilationUnit(CompilationUnitTree node, P p) Visits a CompilationUnitTree node. This implementation callsdefaultAction.- Specified by:
- visitCompilationUnitin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitPackagepublic R visitPackage(PackageTree node, P p) Visits a PackageTree node. This implementation callsdefaultAction.- Specified by:
- visitPackagein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitImportpublic R visitImport(ImportTree node, P p) Visits an ImportTree node. This implementation callsdefaultAction.- Specified by:
- visitImportin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitClasspublic R visitClass(ClassTree node, P p) Visits a ClassTree node. This implementation callsdefaultAction.- Specified by:
- visitClassin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitMethodpublic R visitMethod(MethodTree node, P p) Visits a MethodTree node. This implementation callsdefaultAction.- Specified by:
- visitMethodin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitVariablepublic R visitVariable(VariableTree node, P p) Visits a VariableTree node. This implementation callsdefaultAction.- Specified by:
- visitVariablein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitEmptyStatementpublic R visitEmptyStatement(EmptyStatementTree node, P p) Visits an EmptyStatementTree node. This implementation callsdefaultAction.- Specified by:
- visitEmptyStatementin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitBlockpublic R visitBlock(BlockTree node, P p) Visits a BlockTree node. This implementation callsdefaultAction.- Specified by:
- visitBlockin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitDoWhileLooppublic R visitDoWhileLoop(DoWhileLoopTree node, P p) Visits a DoWhileTree node. This implementation callsdefaultAction.- Specified by:
- visitDoWhileLoopin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitWhileLooppublic R visitWhileLoop(WhileLoopTree node, P p) Visits a WhileLoopTree node. This implementation callsdefaultAction.- Specified by:
- visitWhileLoopin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitForLooppublic R visitForLoop(ForLoopTree node, P p) Visits a ForLoopTree node. This implementation callsdefaultAction.- Specified by:
- visitForLoopin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitEnhancedForLooppublic R visitEnhancedForLoop(EnhancedForLoopTree node, P p) Visits an EnhancedForLoopTree node. This implementation callsdefaultAction.- Specified by:
- visitEnhancedForLoopin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitLabeledStatementpublic R visitLabeledStatement(LabeledStatementTree node, P p) Visits a LabeledStatementTree node. This implementation callsdefaultAction.- Specified by:
- visitLabeledStatementin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitSwitchpublic R visitSwitch(SwitchTree node, P p) Visits a SwitchTree node. This implementation callsdefaultAction.- Specified by:
- visitSwitchin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitCasepublic R visitCase(CaseTree node, P p) Visits a CaseTree node. This implementation callsdefaultAction.- Specified by:
- visitCasein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitSynchronizedpublic R visitSynchronized(SynchronizedTree node, P p) Visits a SynchronizedTree node. This implementation callsdefaultAction.- Specified by:
- visitSynchronizedin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitTrypublic R visitTry(TryTree node, P p) Visits a TryTree node. This implementation callsdefaultAction.- Specified by:
- visitTryin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitCatchpublic R visitCatch(CatchTree node, P p) Visits a CatchTree node. This implementation callsdefaultAction.- Specified by:
- visitCatchin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitConditionalExpressionpublic R visitConditionalExpression(ConditionalExpressionTree node, P p) Visits a ConditionalExpressionTree node. This implementation callsdefaultAction.- Specified by:
- visitConditionalExpressionin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitIfpublic R visitIf(IfTree node, P p) Visits an IfTree node. This implementation callsdefaultAction.- Specified by:
- visitIfin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitExpressionStatementpublic R visitExpressionStatement(ExpressionStatementTree node, P p) Visits an ExpressionStatementTree node. This implementation callsdefaultAction.- Specified by:
- visitExpressionStatementin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitBreakpublic R visitBreak(BreakTree node, P p) Visits a BreakTree node. This implementation callsdefaultAction.- Specified by:
- visitBreakin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitContinuepublic R visitContinue(ContinueTree node, P p) Visits a ContinueTree node. This implementation callsdefaultAction.- Specified by:
- visitContinuein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitReturnpublic R visitReturn(ReturnTree node, P p) Visits a ReturnTree node. This implementation callsdefaultAction.- Specified by:
- visitReturnin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitThrowpublic R visitThrow(ThrowTree node, P p) Visits a ThrowTree node. This implementation callsdefaultAction.- Specified by:
- visitThrowin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitAssertpublic R visitAssert(AssertTree node, P p) Visits an AssertTree node. This implementation callsdefaultAction.- Specified by:
- visitAssertin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitMethodInvocationpublic R visitMethodInvocation(MethodInvocationTree node, P p) Visits a MethodInvocationTree node. This implementation callsdefaultAction.- Specified by:
- visitMethodInvocationin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitNewClasspublic R visitNewClass(NewClassTree node, P p) Visits a NewClassTree node. This implementation callsdefaultAction.- Specified by:
- visitNewClassin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitNewArraypublic R visitNewArray(NewArrayTree node, P p) Visits a NewArrayTree node. This implementation callsdefaultAction.- Specified by:
- visitNewArrayin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitLambdaExpressionpublic R visitLambdaExpression(LambdaExpressionTree node, P p) Visits a LambdaExpressionTree node. This implementation callsdefaultAction.- Specified by:
- visitLambdaExpressionin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitParenthesizedpublic R visitParenthesized(ParenthesizedTree node, P p) Visits a ParenthesizedTree node. This implementation callsdefaultAction.- Specified by:
- visitParenthesizedin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitAssignmentpublic R visitAssignment(AssignmentTree node, P p) Visits an AssignmentTree node. This implementation callsdefaultAction.- Specified by:
- visitAssignmentin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitCompoundAssignmentpublic R visitCompoundAssignment(CompoundAssignmentTree node, P p) Visits a CompoundAssignmentTree node. This implementation callsdefaultAction.- Specified by:
- visitCompoundAssignmentin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitUnarypublic R visitUnary(UnaryTree node, P p) Visits a UnaryTree node. This implementation callsdefaultAction.- Specified by:
- visitUnaryin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitBinarypublic R visitBinary(BinaryTree node, P p) Visits a BinaryTree node. This implementation callsdefaultAction.- Specified by:
- visitBinaryin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitTypeCastpublic R visitTypeCast(TypeCastTree node, P p) Visits a TypeCastTree node. This implementation callsdefaultAction.- Specified by:
- visitTypeCastin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitInstanceOfpublic R visitInstanceOf(InstanceOfTree node, P p) Visits an InstanceOfTree node. This implementation callsdefaultAction.- Specified by:
- visitInstanceOfin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitArrayAccesspublic R visitArrayAccess(ArrayAccessTree node, P p) Visits an ArrayAccessTree node. This implementation callsdefaultAction.- Specified by:
- visitArrayAccessin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitMemberSelectpublic R visitMemberSelect(MemberSelectTree node, P p) Visits a MemberSelectTree node. This implementation callsdefaultAction.- Specified by:
- visitMemberSelectin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitMemberReferencepublic R visitMemberReference(MemberReferenceTree node, P p) Visits a MemberReferenceTree node. This implementation callsdefaultAction.- Specified by:
- visitMemberReferencein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitIdentifierpublic R visitIdentifier(IdentifierTree node, P p) Visits an IdentifierTree node. This implementation callsdefaultAction.- Specified by:
- visitIdentifierin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitLiteralpublic R visitLiteral(LiteralTree node, P p) Visits a LiteralTree node. This implementation callsdefaultAction.- Specified by:
- visitLiteralin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitPrimitiveTypepublic R visitPrimitiveType(PrimitiveTypeTree node, P p) Visits a PrimitiveTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitPrimitiveTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitArrayTypepublic R visitArrayType(ArrayTypeTree node, P p) Visits an ArrayTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitArrayTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitParameterizedTypepublic R visitParameterizedType(ParameterizedTypeTree node, P p) Visits a ParameterizedTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitParameterizedTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitUnionTypepublic R visitUnionType(UnionTypeTree node, P p) Visits a UnionTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitUnionTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitIntersectionTypepublic R visitIntersectionType(IntersectionTypeTree node, P p) Visits an IntersectionTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitIntersectionTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitTypeParameterpublic R visitTypeParameter(TypeParameterTree node, P p) Visits a TypeParameterTree node. This implementation callsdefaultAction.- Specified by:
- visitTypeParameterin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitWildcardpublic R visitWildcard(WildcardTree node, P p) Visits a WildcardTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitWildcardin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitModifierspublic R visitModifiers(ModifiersTree node, P p) Visits a ModifiersTree node. This implementation callsdefaultAction.- Specified by:
- visitModifiersin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitAnnotationpublic R visitAnnotation(AnnotationTree node, P p) Visits an AnnotatedTree node. This implementation callsdefaultAction.- Specified by:
- visitAnnotationin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitAnnotatedTypepublic R visitAnnotatedType(AnnotatedTypeTree node, P p) Visits an AnnotatedTypeTree node. This implementation callsdefaultAction.- Specified by:
- visitAnnotatedTypein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 - 
visitModulepublic R visitModule(ModuleTree node, P p) Description copied from interface:TreeVisitorVisits a ModuleTree node.- Specified by:
- visitModulein interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitExportspublic R visitExports(ExportsTree node, P p) Description copied from interface:TreeVisitorVisits an ExportsTree node.- Specified by:
- visitExportsin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitOpenspublic R visitOpens(OpensTree node, P p) Description copied from interface:TreeVisitorVisits an OpensTree node.- Specified by:
- visitOpensin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitProvidespublic R visitProvides(ProvidesTree node, P p) Description copied from interface:TreeVisitorVisits a ProvidesTree node.- Specified by:
- visitProvidesin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitRequirespublic R visitRequires(RequiresTree node, P p) Description copied from interface:TreeVisitorVisits a RequiresTree node.- Specified by:
- visitRequiresin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitUsespublic R visitUses(UsesTree node, P p) Description copied from interface:TreeVisitorVisits a UsesTree node.- Specified by:
- visitUsesin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitErroneouspublic R visitErroneous(ErroneousTree node, P p) Description copied from interface:TreeVisitorVisits an ErroneousTree node.- Specified by:
- visitErroneousin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- a result value
 
 - 
visitOtherpublic R visitOther(Tree node, P p) Visits an unknown type of Tree node. This can occur if the language evolves and new kinds of nodes are added to theTreehierarchy. This implementation callsdefaultAction.- Specified by:
- visitOtherin interface- TreeVisitor<R,P>
- Parameters:
- node- the node being visited
- p- a parameter value
- Returns:
- the result of defaultAction
 
 
- 
 
-