- java.lang.Object
-
- com.sun.source.util.SimpleTreeVisitor<R,P>
-
- 参数类型
-
R- 这个访问者的方法的返回类型。 对不需要返回结果的访问者使用Void。 -
P- 此访问者方法的附加参数类型。 对不需要附加参数的访问者使用Void。
- All Implemented Interfaces:
-
TreeVisitor<R,P>
public class SimpleTreeVisitor<R,P> extends Object implements TreeVisitor<R,P>
树节点的简单访问者。- 从以下版本开始:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field 描述 protected RDEFAULT_VALUE默认值,由default action返回。
-
构造方法摘要
构造方法 Modifier Constructor 描述 protectedSimpleTreeVisitor()创建访问者,DEFAULT_VALUE为null。protectedSimpleTreeVisitor(R defaultValue)创建一个具有指定DEFAULT_VALUE的访问者。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 protected RdefaultAction(树 node, P p)所有访问方法使用的默认操作不被覆盖。Rvisit(树 node, P p)调用特定于节点类型的适当访问方式。Rvisit(Iterable<? extends 树> nodes, P p)在每个节点序列上调用适当的访问方法。RvisitAnnotatedType(AnnotatedTypeTree node, P p)访问AnnotatedTypeTree节点。RvisitAnnotation(AnnotationTree node, P p)访问AnnotatedTree节点。RvisitArrayAccess(ArrayAccessTree node, P p)访问ArrayAccessTree节点。RvisitArrayType(ArrayTypeTree node, P p)访问ArrayTypeTree节点。RvisitAssert(AssertTree node, P p)访问AssertTree节点。RvisitAssignment(AssignmentTree node, P p)访问AssignmentTree节点。RvisitBinary(BinaryTree node, P p)访问二进制流节点。RvisitBlock(BlockTree node, P p)访问BlockTree节点。RvisitBreak(BreakTree node, P p)访问BreakTree节点。RvisitCase(CaseTree node, P p)访问CaseTree节点。RvisitCatch(CatchTree node, P p)访问CatchTree节点。RvisitClass(ClassTree node, P p)访问ClassTree节点。RvisitCompilationUnit(CompilationUnitTree node, P p)访问CompilationUnitTree节点。RvisitCompoundAssignment(CompoundAssignmentTree node, P p)访问一个CompoundAssignmentTree节点。RvisitConditionalExpression(ConditionalExpressionTree node, P p)访问一个ConditionalExpressionTree节点。RvisitContinue(ContinueTree node, P p)访问ContinueTree节点。RvisitDoWhileLoop(DoWhileLoopTree node, P p)访问DoWhileTree节点。RvisitEmptyStatement(EmptyStatementTree node, P p)访问一个EmptyStatementTree节点。RvisitEnhancedForLoop(EnhancedForLoopTree node, P p)访问EnhancedForLoopTree节点。RvisitErroneous(ErroneousTree node, P p)访问ErroneousTree节点。RvisitExports(ExportsTree node, P p)访问ExportsTree节点。RvisitExpressionStatement(ExpressionStatementTree node, P p)访问ExpressionStatementTree节点。RvisitForLoop(ForLoopTree node, P p)访问ForLoopTree节点。RvisitIdentifier(IdentifierTree node, P p)访问IdentifierTree节点。RvisitIf(IfTree node, P p)访问IfTree节点。RvisitImport(ImportTree node, P p)访问ImportTree节点。RvisitInstanceOf(InstanceOfTree node, P p)访问InstanceOfTree节点。RvisitIntersectionType(IntersectionTypeTree node, P p)访问一个IntersectionTypeTree节点。RvisitLabeledStatement(LabeledStatementTree node, P p)访问LabeledStatementTree节点。RvisitLambdaExpression(LambdaExpressionTree node, P p)访问LambdaExpressionTree节点。RvisitLiteral(LiteralTree node, P p)访问LiteralTree节点。RvisitMemberReference(MemberReferenceTree node, P p)访问MemberReferenceTree节点。RvisitMemberSelect(MemberSelectTree node, P p)访问MemberSelectTree节点。RvisitMethod(MethodTree node, P p)访问MethodTree节点。RvisitMethodInvocation(MethodInvocationTree node, P p)访问MethodInvocationTree节点。RvisitModifiers(ModifiersTree node, P p)访问修饰符Tree节点。RvisitModule(ModuleTree node, P p)访问ModuleTree节点。RvisitNewArray(NewArrayTree node, P p)访问NewArrayTree节点。RvisitNewClass(NewClassTree node, P p)访问NewClassTree节点。RvisitOpens(OpensTree node, P p)访问OpensTree节点。RvisitOther(树 node, P p)访问未知类型的树节点。RvisitPackage(PackageTree node, P p)访问PackageTree节点。RvisitParameterizedType(ParameterizedTypeTree node, P p)访问ParameterizedTypeTree节点。RvisitParenthesized(ParenthesizedTree node, P p)访问ParenthesizedTree节点。RvisitPrimitiveType(PrimitiveTypeTree node, P p)访问PrimitiveTypeTree节点。RvisitProvides(ProvidesTree node, P p)访问ProvideTree节点。RvisitRequires(RequiresTree node, P p)访问RequiresTree节点。RvisitReturn(ReturnTree node, P p)访问ReturnTree节点。RvisitSwitch(SwitchTree node, P p)访问SwitchTree节点。RvisitSynchronized(SynchronizedTree node, P p)访问SynchronizedTree节点。RvisitThrow(ThrowTree node, P p)访问ThrowTree节点RvisitTry(TryTree node, P p)访问TryTree节点。RvisitTypeCast(TypeCastTree node, P p)访问TypeCastTree节点。RvisitTypeParameter(TypeParameterTree node, P p)访问TypeParameterTree节点。RvisitUnary(UnaryTree node, P p)访问UnaryTree节点。RvisitUnionType(UnionTypeTree node, P p)访问UnionTypeTree节点。RvisitUses(UsesTree node, P p)访问UsesTree节点。RvisitVariable(VariableTree node, P p)访问VariableTree节点。RvisitWhileLoop(WhileLoopTree node, P p)访问WhileLoopTree节点。RvisitWildcard(WildcardTree node, P p)访问WildcardTypeTree节点。
-
-
-
字段详细信息
-
DEFAULT_VALUE
protected final R DEFAULT_VALUE
默认值,由default action返回。
-
-
构造方法详细信息
-
SimpleTreeVisitor
protected SimpleTreeVisitor()
创建访问者,DEFAULT_VALUE为null。
-
SimpleTreeVisitor
protected SimpleTreeVisitor(R defaultValue)
创建一个具有指定DEFAULT_VALUE的访问者。- 参数
-
defaultValue- 默认值返回的默认值。
-
-
方法详细信息
-
defaultAction
protected R defaultAction(树 node, P p)
所有访问方法使用的默认操作不被覆盖。- 参数
-
node- 被访问的节点 -
p- 传递给访问方法的参数值 - 结果
- 从访问方法返回的结果值
-
visit
public final R visit(树 node, P p)
调用特定于节点类型的适当访问方式。- 参数
-
node- 要发送的节点 -
p- 要传递给相应访问方法的参数 - 结果
- 该值从适当的访问方法返回
-
visit
public final R visit(Iterable<? extends 树> nodes, P p)
在每个节点序列上调用适当的访问方法。- 参数
-
nodes- 要发送的节点 -
p- 要传递给每个适当的访问方法的参数值 - 结果
- 从最后访问方法返回的值,如果没有调用,则返回null。
-
visitCompilationUnit
public R visitCompilationUnit(CompilationUnitTree node, P p)
访问CompilationUnitTree节点。 此实现调用defaultAction。- Specified by:
-
visitCompilationUnit在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitPackage
public R visitPackage(PackageTree node, P p)
访问PackageTree节点。 此实现调用defaultAction。- Specified by:
-
visitPackage在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitImport
public R visitImport(ImportTree node, P p)
访问ImportTree节点。 此实现调用defaultAction。- Specified by:
-
visitImport在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitClass
public R visitClass(ClassTree node, P p)
访问ClassTree节点。 此实现调用defaultAction。- Specified by:
-
visitClass在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitMethod
public R visitMethod(MethodTree node, P p)
访问MethodTree节点。 此实现调用defaultAction。- Specified by:
-
visitMethod在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitVariable
public R visitVariable(VariableTree node, P p)
访问VariableTree节点。 此实现调用defaultAction。- Specified by:
-
visitVariable在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitEmptyStatement
public R visitEmptyStatement(EmptyStatementTree node, P p)
访问一个EmptyStatementTree节点。 此实现调用defaultAction。- Specified by:
-
visitEmptyStatement在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitBlock
public R visitBlock(BlockTree node, P p)
访问BlockTree节点。 此实现调用defaultAction。- Specified by:
-
visitBlock在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitDoWhileLoop
public R visitDoWhileLoop(DoWhileLoopTree node, P p)
访问DoWhileTree节点。 此实现调用defaultAction。- Specified by:
-
visitDoWhileLoop在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitWhileLoop
public R visitWhileLoop(WhileLoopTree node, P p)
访问WhileLoopTree节点。 此实现调用defaultAction。- Specified by:
-
visitWhileLoop在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitForLoop
public R visitForLoop(ForLoopTree node, P p)
访问ForLoopTree节点。 此实现调用defaultAction。- Specified by:
-
visitForLoop在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitEnhancedForLoop
public R visitEnhancedForLoop(EnhancedForLoopTree node, P p)
访问EnhancedForLoopTree节点。 此实现调用defaultAction。- Specified by:
-
visitEnhancedForLoop在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitLabeledStatement
public R visitLabeledStatement(LabeledStatementTree node, P p)
访问LabeledStatementTree节点。 此实现调用defaultAction。- Specified by:
-
visitLabeledStatement在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitSwitch
public R visitSwitch(SwitchTree node, P p)
访问SwitchTree节点。 此实现调用defaultAction。- Specified by:
-
visitSwitch在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitCase
public R visitCase(CaseTree node, P p)
访问CaseTree节点。 此实现调用defaultAction。- Specified by:
-
visitCase在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitSynchronized
public R visitSynchronized(SynchronizedTree node, P p)
访问SynchronizedTree节点。 此实现调用defaultAction。- Specified by:
-
visitSynchronized在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitTry
public R visitTry(TryTree node, P p)
访问TryTree节点。 此实现调用defaultAction。- Specified by:
-
visitTry在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitCatch
public R visitCatch(CatchTree node, P p)
访问CatchTree节点。 此实现调用defaultAction。- Specified by:
-
visitCatch在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitConditionalExpression
public R visitConditionalExpression(ConditionalExpressionTree node, P p)
访问一个ConditionalExpressionTree节点。 此实现调用defaultAction。- Specified by:
-
visitConditionalExpression在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitIf
public R visitIf(IfTree node, P p)
访问IfTree节点。 此实现调用defaultAction。- Specified by:
-
visitIf在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitExpressionStatement
public R visitExpressionStatement(ExpressionStatementTree node, P p)
访问ExpressionStatementTree节点。 此实现调用defaultAction。- Specified by:
-
visitExpressionStatement在接口TreeVisitor<R,P> - 参数
-
node- 正在被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitBreak
public R visitBreak(BreakTree node, P p)
访问BreakTree节点。 此实现调用defaultAction。- Specified by:
-
visitBreak在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitContinue
public R visitContinue(ContinueTree node, P p)
访问ContinueTree节点。 此实现调用defaultAction。- Specified by:
-
visitContinue在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitReturn
public R visitReturn(ReturnTree node, P p)
访问ReturnTree节点。 此实现调用defaultAction。- Specified by:
-
visitReturn在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitThrow
public R visitThrow(ThrowTree node, P p)
访问ThrowTree节点 此实现调用defaultAction。- Specified by:
-
visitThrow在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitAssert
public R visitAssert(AssertTree node, P p)
访问AssertTree节点。 此实现调用defaultAction。- Specified by:
-
visitAssert在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitMethodInvocation
public R visitMethodInvocation(MethodInvocationTree node, P p)
访问MethodInvocationTree节点。 此实现调用defaultAction。- Specified by:
-
visitMethodInvocation在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitNewClass
public R visitNewClass(NewClassTree node, P p)
访问NewClassTree节点。 此实现调用defaultAction。- Specified by:
-
visitNewClass在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitNewArray
public R visitNewArray(NewArrayTree node, P p)
访问NewArrayTree节点。 此实现调用defaultAction。- Specified by:
-
visitNewArray在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitLambdaExpression
public R visitLambdaExpression(LambdaExpressionTree node, P p)
访问LambdaExpressionTree节点。 此实现调用defaultAction。- Specified by:
-
visitLambdaExpression在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitParenthesized
public R visitParenthesized(ParenthesizedTree node, P p)
访问ParenthesizedTree节点。 此实现调用defaultAction。- Specified by:
-
visitParenthesized在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitAssignment
public R visitAssignment(AssignmentTree node, P p)
访问AssignmentTree节点。 此实现调用defaultAction。- Specified by:
-
visitAssignment在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitCompoundAssignment
public R visitCompoundAssignment(CompoundAssignmentTree node, P p)
访问一个CompoundAssignmentTree节点。 此实现调用defaultAction。- Specified by:
-
visitCompoundAssignment在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitUnary
public R visitUnary(UnaryTree node, P p)
访问UnaryTree节点。 此实现调用defaultAction。- Specified by:
-
visitUnary在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitBinary
public R visitBinary(BinaryTree node, P p)
访问二进制流节点。 此实现调用defaultAction。- Specified by:
-
visitBinary在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitTypeCast
public R visitTypeCast(TypeCastTree node, P p)
访问TypeCastTree节点。 此实现调用defaultAction。- Specified by:
-
visitTypeCast在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitInstanceOf
public R visitInstanceOf(InstanceOfTree node, P p)
访问InstanceOfTree节点。 此实现调用defaultAction。- Specified by:
-
visitInstanceOf在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitArrayAccess
public R visitArrayAccess(ArrayAccessTree node, P p)
访问ArrayAccessTree节点。 此实现调用defaultAction。- Specified by:
-
visitArrayAccess在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitMemberSelect
public R visitMemberSelect(MemberSelectTree node, P p)
访问MemberSelectTree节点。 此实现调用defaultAction。- Specified by:
-
visitMemberSelect在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitMemberReference
public R visitMemberReference(MemberReferenceTree node, P p)
访问MemberReferenceTree节点。 此实现调用defaultAction。- Specified by:
-
visitMemberReference在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitIdentifier
public R visitIdentifier(IdentifierTree node, P p)
访问IdentifierTree节点。 此实现调用defaultAction。- Specified by:
-
visitIdentifier在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitLiteral
public R visitLiteral(LiteralTree node, P p)
访问LiteralTree节点。 此实现调用defaultAction。- Specified by:
-
visitLiteral在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitPrimitiveType
public R visitPrimitiveType(PrimitiveTypeTree node, P p)
访问PrimitiveTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitPrimitiveType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitArrayType
public R visitArrayType(ArrayTypeTree node, P p)
访问ArrayTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitArrayType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitParameterizedType
public R visitParameterizedType(ParameterizedTypeTree node, P p)
访问ParameterizedTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitParameterizedType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitUnionType
public R visitUnionType(UnionTypeTree node, P p)
访问UnionTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitUnionType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 一个参数值 - 结果
-
结果为
defaultAction
-
visitIntersectionType
public R visitIntersectionType(IntersectionTypeTree node, P p)
访问一个IntersectionTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitIntersectionType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitTypeParameter
public R visitTypeParameter(TypeParameterTree node, P p)
访问TypeParameterTree节点。 此实现调用defaultAction。- Specified by:
-
visitTypeParameter在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitWildcard
public R visitWildcard(WildcardTree node, P p)
访问WildcardTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitWildcard在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitModifiers
public R visitModifiers(ModifiersTree node, P p)
访问修饰符Tree节点。 此实现调用defaultAction。- Specified by:
-
visitModifiers在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitAnnotation
public R visitAnnotation(AnnotationTree node, P p)
访问AnnotatedTree节点。 此实现调用defaultAction。- Specified by:
-
visitAnnotation在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitAnnotatedType
public R visitAnnotatedType(AnnotatedTypeTree node, P p)
访问AnnotatedTypeTree节点。 此实现调用defaultAction。- Specified by:
-
visitAnnotatedType在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
visitModule
public R visitModule(ModuleTree node, P p)
描述从接口TreeVisitor复制访问ModuleTree节点。- Specified by:
-
visitModule在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitExports
public R visitExports(ExportsTree node, P p)
描述从接口TreeVisitor复制访问ExportsTree节点。- Specified by:
-
visitExports在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitOpens
public R visitOpens(OpensTree node, P p)
描述从接口TreeVisitor复制访问OpensTree节点。- Specified by:
-
visitOpens在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitProvides
public R visitProvides(ProvidesTree node, P p)
描述从接口TreeVisitor复制访问ProvideTree节点。- Specified by:
-
visitProvides在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitRequires
public R visitRequires(RequiresTree node, P p)
描述从接口TreeVisitor复制访问RequiresTree节点。- Specified by:
-
visitRequires在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitUses
public R visitUses(UsesTree node, P p)
描述从接口TreeVisitor复制访问UsesTree节点。- Specified by:
-
visitUses在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitErroneous
public R visitErroneous(ErroneousTree node, P p)
说明从接口TreeVisitor复制访问ErroneousTree节点。- Specified by:
-
visitErroneous在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
- 结果值
-
visitOther
public R visitOther(树 node, P p)
访问未知类型的树节点。 如果语言发展并且将新类型的节点添加到树层次结构中,则可能会发生这种情况。 此实现调用defaultAction。- Specified by:
-
visitOther在接口TreeVisitor<R,P> - 参数
-
node- 被访问的节点 -
p- 参数值 - 结果
-
结果为
defaultAction
-
-