com.sun.source.tree |
Provides interfaces to represent source code as abstract syntax
trees (AST). |
Java Source File Name | Type | Comment |
AnnotationTree.java | Interface | A tree node for an annotation. |
ArrayAccessTree.java | Interface | A tree node for an array access expression. |
ArrayTypeTree.java | Interface | A tree node for an array type. |
AssertTree.java | Interface | A tree node for an 'assert' statement. |
AssignmentTree.java | Interface | A tree node for an assignment expression. |
BinaryTree.java | Interface | A tree node for a binary expression. |
BlockTree.java | Interface | A tree node for a statement block. |
BreakTree.java | Interface | A tree node for a 'break' statement. |
CaseTree.java | Interface | A tree node for a 'case' in a 'switch' statement. |
CatchTree.java | Interface | A tree node for a 'catch' block in a 'try' statement. |
ClassTree.java | Interface | A tree node for a class, interface, enum, or annotation
type declaration. |
CompilationUnitTree.java | Interface | Represents the abstract syntax tree for compilation units (source
files) and package declarations (package-info.java). |
CompoundAssignmentTree.java | Interface | A tree node for compound assignment operator. |
ConditionalExpressionTree.java | Interface | A tree node for the conditional operator ? :. |
ContinueTree.java | Interface | A tree node for a 'continue' statement. |
DoWhileLoopTree.java | Interface | A tree node for a 'do' statement. |
EmptyStatementTree.java | Interface | A tree node for an empty (skip) statement. |
EnhancedForLoopTree.java | Interface | A tree node for an "enhanced" 'for' loop statement. |
ErroneousTree.java | Interface | A tree node to stand in for a malformed expression. |
ExpressionStatementTree.java | Interface | A tree node for an expression statement. |
ExpressionTree.java | Interface | A tree node used as the base class for the different types of
expressions. |
ForLoopTree.java | Interface | A tree node for a basic 'for' loop statement. |
IdentifierTree.java | Interface | A tree node for an identifier expression. |
IfTree.java | Interface | A tree node for an 'if' statement. |
ImportTree.java | Interface | A tree node for an import statement. |
InstanceOfTree.java | Interface | A tree node for an 'instanceof' expression. |
LabeledStatementTree.java | Interface | A tree node for a labeled statement. |
LineMap.java | Interface | Provides methods to convert between character positions and line numbers
for a compilation unit. |
LiteralTree.java | Interface | A tree node for a literal expression. |
MemberSelectTree.java | Interface | A tree node for a member access expression.
For example:
expression . |
MethodInvocationTree.java | Interface | A tree node for a method invocation expression.
For example:
identifier ( arguments )
this . |
MethodTree.java | Interface | A tree node for a method or annotation type element declaration. |
ModifiersTree.java | Interface | A tree node for the modifiers, including annotations, for a declaration. |
NewArrayTree.java | Interface | A tree node for an expression to create a new instance of an array. |
NewClassTree.java | Interface | A tree node to declare a new instance of a class. |
package-info.java | | |
ParameterizedTypeTree.java | Interface | A tree node for a type expression involving type parameters. |
ParenthesizedTree.java | Interface | A tree node for a parenthesized expression. |
PrimitiveTypeTree.java | Interface | A tree node for a primitive type. |
ReturnTree.java | Interface | A tree node for a 'return' statement. |
Scope.java | Interface | Interface for determining locally available program elements, such as
local variables and imports. |
StatementTree.java | Interface | A tree node used as the base class for the different kinds of
statements. |
SwitchTree.java | Interface | A tree node for a 'switch' statement. |
SynchronizedTree.java | Interface | A tree node for a 'synchronized' statement. |
ThrowTree.java | Interface | A tree node for a 'throw' statement. |
Tree.java | Interface | Common interface for all nodes in an abstract syntax tree. |
TreeVisitor.java | Interface | 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
Tree.acceptaccept method, the visitXYZ method most applicable
to that tree is invoked.
Classes implementing this interface may or may not throw a
NullPointerException if the additional parameter
p is
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. |
TryTree.java | Interface | A tree node for a 'try' statement. |
TypeCastTree.java | Interface | A tree node for a type cast expression. |
TypeParameterTree.java | Interface | A tree node for a type parameter. |
UnaryTree.java | Interface | A tree node for postfix and unary expressions. |
VariableTree.java | Interface | A tree node for a variable declaration. |
WhileLoopTree.java | Interface | A tree node for a 'while' loop statement. |
WildcardTree.java | Interface | A tree node for a wildcard type argument. |