Home » openjdk-7 » com.sun.source » tree » [javadoc | source]
com.sun.source.tree
public interface: TreeVisitor [javadoc | source]

All Known Implementing Classes:
    TreePathScanner, TreeCopier, SimpleTreeVisitor, Copier, IdentAttributer, TreeScanner

A visitor of trees, in the style of the visitor design pattern. Classes implementing this interface are used to operate on a tree when the kind of tree is unknown at compile time. When a visitor is passed to an tree's accept method, the visitXYZ method most applicable to that tree is invoked.

Classes implementing this interface may or may not throw a {@code NullPointerException} if the additional parameter {@code p} is {@code null}; see documentation of the implementing class for details.

WARNING: It is possible that methods will be added to this interface to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Therefore, visitor classes directly implementing this interface may be source incompatible with future versions of the platform.

Method from com.sun.source.tree.TreeVisitor Summary:
visitAnnotation,   visitArrayAccess,   visitArrayType,   visitAssert,   visitAssignment,   visitBinary,   visitBlock,   visitBreak,   visitCase,   visitCatch,   visitClass,   visitCompilationUnit,   visitCompoundAssignment,   visitConditionalExpression,   visitContinue,   visitDoWhileLoop,   visitEmptyStatement,   visitEnhancedForLoop,   visitErroneous,   visitExpressionStatement,   visitForLoop,   visitIdentifier,   visitIf,   visitImport,   visitInstanceOf,   visitLabeledStatement,   visitLiteral,   visitMemberSelect,   visitMethod,   visitMethodInvocation,   visitModifiers,   visitNewArray,   visitNewClass,   visitOther,   visitParameterizedType,   visitParenthesized,   visitPrimitiveType,   visitReturn,   visitSwitch,   visitSynchronized,   visitThrow,   visitTry,   visitTypeCast,   visitTypeParameter,   visitUnary,   visitUnionType,   visitVariable,   visitWhileLoop,   visitWildcard
Method from com.sun.source.tree.TreeVisitor Detail:
 public R visitAnnotation(AnnotationTree node,
    P p)
 public R visitArrayAccess(ArrayAccessTree node,
    P p)
 public R visitArrayType(ArrayTypeTree node,
    P p)
 public R visitAssert(AssertTree node,
    P p)
 public R visitAssignment(AssignmentTree node,
    P p)
 public R visitBinary(BinaryTree node,
    P p)
 public R visitBlock(BlockTree node,
    P p)
 public R visitBreak(BreakTree node,
    P p)
 public R visitCase(CaseTree node,
    P p)
 public R visitCatch(CatchTree node,
    P p)
 public R visitClass(ClassTree node,
    P p)
 public R visitCompilationUnit(CompilationUnitTree node,
    P p)
 public R visitCompoundAssignment(CompoundAssignmentTree node,
    P p)
 public R visitConditionalExpression(ConditionalExpressionTree node,
    P p)
 public R visitContinue(ContinueTree node,
    P p)
 public R visitDoWhileLoop(DoWhileLoopTree node,
    P p)
 public R visitEmptyStatement(EmptyStatementTree node,
    P p)
 public R visitEnhancedForLoop(EnhancedForLoopTree node,
    P p)
 public R visitErroneous(ErroneousTree node,
    P p)
 public R visitExpressionStatement(ExpressionStatementTree node,
    P p)
 public R visitForLoop(ForLoopTree node,
    P p)
 public R visitIdentifier(IdentifierTree node,
    P p)
 public R visitIf(IfTree node,
    P p)
 public R visitImport(ImportTree node,
    P p)
 public R visitInstanceOf(InstanceOfTree node,
    P p)
 public R visitLabeledStatement(LabeledStatementTree node,
    P p)
 public R visitLiteral(LiteralTree node,
    P p)
 public R visitMemberSelect(MemberSelectTree node,
    P p)
 public R visitMethod(MethodTree node,
    P p)
 public R visitMethodInvocation(MethodInvocationTree node,
    P p)
 public R visitModifiers(ModifiersTree node,
    P p)
 public R visitNewArray(NewArrayTree node,
    P p)
 public R visitNewClass(NewClassTree node,
    P p)
 public R visitOther(Tree node,
    P p)
 public R visitParameterizedType(ParameterizedTypeTree node,
    P p)
 public R visitParenthesized(ParenthesizedTree node,
    P p)
 public R visitPrimitiveType(PrimitiveTypeTree node,
    P p)
 public R visitReturn(ReturnTree node,
    P p)
 public R visitSwitch(SwitchTree node,
    P p)
 public R visitSynchronized(SynchronizedTree node,
    P p)
 public R visitThrow(ThrowTree node,
    P p)
 public R visitTry(TryTree node,
    P p)
 public R visitTypeCast(TypeCastTree node,
    P p)
 public R visitTypeParameter(TypeParameterTree node,
    P p)
 public R visitUnary(UnaryTree node,
    P p)
 public R visitUnionType(UnionTypeTree node,
    P p)
 public R visitVariable(VariableTree node,
    P p)
 public R visitWhileLoop(WhileLoopTree node,
    P p)
 public R visitWildcard(WildcardTree node,
    P p)