Package | Description |
---|---|
jdk.nashorn.api.tree |
Nashorn parser API provides interfaces to represent ECMAScript source code
as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayAccessTree
A tree node for an array access expression.
|
interface |
ArrayLiteralTree
Represents ECMAScript array literal expression.
|
interface |
AssignmentTree
A tree node for an assignment expression.
|
interface |
BinaryTree
A tree node for a binary expression.
|
interface |
BlockTree
A tree node for a statement block.
|
interface |
BreakTree
A tree node for a 'break' statement.
|
interface |
CaseTree
A tree node for a 'case' in a 'switch' statement.
|
interface |
CatchTree
A tree node for a 'catch' block in a 'try' statement.
|
interface |
CompilationUnitTree
Represents the abstract syntax tree for compilation units (source
files)
|
interface |
CompoundAssignmentTree
A tree node for compound assignment operator.
|
interface |
ConditionalExpressionTree
A tree node for the conditional operator ? :.
|
interface |
ConditionalLoopTree
A mixin for conditional "loop" statements.
|
interface |
ContinueTree
A tree node for a 'continue' statement.
|
interface |
DebuggerTree
A tree node for a 'debugger' statement.
|
interface |
DoWhileLoopTree
A tree node for a 'do' statement.
|
interface |
EmptyStatementTree
A tree node for an empty (skip) statement.
|
interface |
ErroneousTree
A tree node to stand in for a malformed expression.
|
interface |
ExpressionStatementTree
A tree node for an expression statement.
|
interface |
ExpressionTree
A tree node used as the base class for the different types of
expressions.
|
interface |
ForInLoopTree
A tree node for for..in statement
For example:
|
interface |
ForLoopTree
A tree node for a basic 'for' loop statement.
|
interface |
FunctionCallTree
A tree node for a function call expression.
|
interface |
FunctionDeclarationTree
A tree node for a function declaration.
|
interface |
FunctionExpressionTree
A tree node for a function expression.
|
interface |
GotoTree
A tree node for a statement that jumps to a target.
|
interface |
IdentifierTree
A tree node for an identifier expression.
|
interface |
IfTree
A tree node for an 'if' statement.
|
interface |
InstanceOfTree
A tree node for an 'instanceof' expression.
|
interface |
LabeledStatementTree
A tree node for a labeled statement.
|
interface |
LiteralTree
A tree node for a literal expression.
|
interface |
LoopTree
A mixin for "loop" statements.
|
interface |
MemberSelectTree
A tree node for a member access expression.
|
interface |
NewTree
A tree node to declare a new instance of a class.
|
interface |
ObjectLiteralTree
Represents ECMAScript object literal expression.
|
interface |
ParenthesizedTree
A tree node for a parenthesized expression.
|
interface |
PropertyTree
To represent property setting in an object literal tree.
|
interface |
RegExpLiteralTree
Represents regular expression literal in the source code.
|
interface |
ReturnTree
A tree node for a 'return' statement.
|
interface |
StatementTree
A tree node used as the base class for the different kinds of
statements.
|
interface |
SwitchTree
A tree node for a 'switch' statement.
|
interface |
ThrowTree
A tree node for a 'throw' statement.
|
interface |
TryTree
A tree node for a 'try' statement.
|
interface |
UnaryTree
A tree node for postfix and unary expressions.
|
interface |
VariableTree
A tree node for a variable declaration.
|
interface |
WhileLoopTree
A tree node for a 'while' loop statement.
|
interface |
WithTree
A tree node for a 'with' statement.
|
Modifier and Type | Method and Description |
---|---|
Tree |
InstanceOfTree.getType()
Returns the type expression.
|
Tree |
UnknownTreeException.getUnknownTree()
Returns the unknown tree.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends Tree> |
Tree.Kind.asInterface()
Returns the associated interface type that uses this kind.
|
List<? extends Tree> |
CompilationUnitTree.getSourceElements()
Return the list of source elements in this compilation unit.
|
Modifier and Type | Method and Description |
---|---|
R |
SimpleTreeVisitorES5_1.visitUnknown(Tree node,
P r) |
R |
TreeVisitor.visitUnknown(Tree node,
P p)
Visit unknown expression/statement tree.
|
Constructor and Description |
---|
UnknownTreeException(Tree t,
Object p)
Creates a new
UnknownTreeException . |
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-b71