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 | 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 |
ClassDeclarationTree |
A tree node that represents a class declaration.
|
interface |
ClassExpressionTree |
A tree node that represents a class expression.
|
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 |
ExportEntryTree |
A Tree node for export entry in Module information.
|
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 |
ForOfLoopTree |
A tree node for for..of 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 function expressions including arrow functions.
|
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 |
ImportEntryTree |
A Tree node for import entry of Module information.
|
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 |
ModuleTree |
A Tree node for Module information.
|
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 |
SpreadTree |
A tree node for spread operator in array elements, function call arguments.
|
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 |
TemplateLiteralTree |
A tree node for template literal strings.
|
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 statement.
|
interface |
WhileLoopTree |
A tree node for a 'while' loop statement.
|
interface |
WithTree |
A tree node for a 'with' statement.
|
interface |
YieldTree |
A tree node for yield expressions used in generator functions.
|
Modifier and Type | Method | Description |
---|---|---|
Tree |
FunctionExpressionTree.getBody() |
Returns the body of this function.
|
Tree |
InstanceOfTree.getType() |
Returns the type expression.
|
Tree |
UnknownTreeException.getUnknownTree() |
Returns the unknown tree.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
R |
SimpleTreeVisitorES5_1.visitUnknown(Tree node,
P p) |
Visit unknown expression/statement tree.
|
R |
TreeVisitor.visitUnknown(Tree node,
P p) |
Visit unknown expression/statement tree.
|
Constructor | Description |
---|---|
UnknownTreeException(Tree t,
Object p) |
Creates a new
UnknownTreeException . |
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-Debian+0-9b153-2