AnnotatedTypeTree
, AnnotationTree
, ArrayAccessTree
, ArrayTypeTree
, AssertTree
, AssignmentTree
, BinaryTree
, BlockTree
, BreakTree
, CaseTree
, CatchTree
, ClassTree
, CompilationUnitTree
, CompoundAssignmentTree
, ConditionalExpressionTree
, ContinueTree
, DirectiveTree
, DoWhileLoopTree
, EmptyStatementTree
, EnhancedForLoopTree
, ErroneousTree
, ExportsTree
, ExpressionStatementTree
, ExpressionTree
, ForLoopTree
, IdentifierTree
, IfTree
, ImportTree
, InstanceOfTree
, IntersectionTypeTree
, LabeledStatementTree
, LambdaExpressionTree
, LiteralTree
, MemberReferenceTree
, MemberSelectTree
, MethodInvocationTree
, MethodTree
, ModifiersTree
, ModuleTree
, NewArrayTree
, NewClassTree
, OpensTree
, PackageTree
, ParameterizedTypeTree
, ParenthesizedTree
, PrimitiveTypeTree
, ProvidesTree
, RequiresTree
, ReturnTree
, StatementTree
, SwitchTree
, SynchronizedTree
, ThrowTree
, TryTree
, TypeCastTree
, TypeParameterTree
, UnaryTree
, UnionTypeTree
, UsesTree
, VariableTree
, WhileLoopTree
, WildcardTree
public interface Tree
WARNING: This interface and its sub-interfaces are subject to change as the Java™ programming language evolves. These interfaces are implemented by the JDK Java compiler (javac) and should not be implemented either directly or indirectly by other applications.
Modifier and Type | Interface | Description |
---|---|---|
static class |
Tree.Kind |
Enumerates all kinds of trees.
|
Modifier and Type | Method | Description |
---|---|---|
<R,D> R |
accept(TreeVisitor<R,D> visitor,
D data) |
Accept method used to implement the visitor pattern.
|
Tree.Kind |
getKind() |
Returns the kind of this tree.
|
Tree.Kind getKind()
<R,D> R accept(TreeVisitor<R,D> visitor, D data)
R
- result type of this operation.D
- type of additional data.visitor
- the visitor to be calleddata
- a value to be passed to the visitor Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b153-1