Top Description Inners Methods
com.sun.source.tree

public Interface Tree

Known Direct Subinterfaces
com.sun.source.tree.TypeParameterTree, com.sun.source.tree.UnionTypeTree, com.sun.source.tree.WildcardTree, com.sun.source.tree.ImportTree, com.sun.source.tree.ParameterizedTypeTree, com.sun.source.tree.ArrayTypeTree, com.sun.source.tree.CaseLabelTree, com.sun.source.tree.CaseTree, com.sun.source.tree.CatchTree, com.sun.source.tree.CompilationUnitTree, com.sun.source.tree.DirectiveTree, com.sun.source.tree.ExpressionTree, com.sun.source.tree.IntersectionTypeTree, com.sun.source.tree.MethodTree, com.sun.source.tree.ModifiersTree, com.sun.source.tree.ModuleTree, com.sun.source.tree.PackageTree, com.sun.source.tree.PatternTree, com.sun.source.tree.PrimitiveTypeTree, com.sun.source.tree.StatementTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree
Imports
jdk.internal.javac.PreviewFeature

Common interface for all nodes in an abstract syntax 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.

Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Tree.Kind

Enumerates all kinds of trees.

Method Summary

Modifier and TypeMethod and Description
public <
the result type of this operation
R
,
the type of additional data
D
>
R

Returns:

the result returned from calling the visitor
accept
(TreeVisitor<R, D>
the visitor to be called
visitor
,
D
a value to be passed to the visitor
data
)

Accept method used to implement the visitor pattern.

public Tree.Kind

Returns:

the kind of this tree
getKind
()

Returns the kind of this tree.