ArrayAccessTree
, ArrayLiteralTree
, AssignmentTree
, BinaryTree
, BlockTree
, BreakTree
, CaseTree
, CatchTree
, ClassDeclarationTree
, ClassExpressionTree
, CompilationUnitTree
, CompoundAssignmentTree
, ConditionalExpressionTree
, ConditionalLoopTree
, ContinueTree
, DebuggerTree
, DoWhileLoopTree
, EmptyStatementTree
, ErroneousTree
, ExportEntryTree
, ExpressionStatementTree
, ExpressionTree
, ForInLoopTree
, ForLoopTree
, ForOfLoopTree
, FunctionCallTree
, FunctionDeclarationTree
, FunctionExpressionTree
, GotoTree
, IdentifierTree
, IfTree
, ImportEntryTree
, InstanceOfTree
, LabeledStatementTree
, LiteralTree
, LoopTree
, MemberSelectTree
, ModuleTree
, NewTree
, ObjectLiteralTree
, ParenthesizedTree
, PropertyTree
, RegExpLiteralTree
, ReturnTree
, SpreadTree
, StatementTree
, SwitchTree
, TemplateLiteralTree
, ThrowTree
, TryTree
, UnaryTree
, VariableTree
, WhileLoopTree
, WithTree
, YieldTree
public interface Tree
WARNING: This interface and its sub-interfaces are subject to change as the ECMAScript programming language evolves.
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.
|
long |
getEndPosition() |
End character offset of this Tree within the source.
|
Tree.Kind |
getKind() |
Gets the kind of this tree.
|
long |
getStartPosition() |
Start character offset of this Tree within the source.
|
long getStartPosition()
long getEndPosition()
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
- tree visitordata
- additional data passed to visitor methods 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 © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b159-1ubuntu1