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 |
BlockTree
A tree node for a statement block.
|
interface |
BreakTree
A tree node for a 'break' statement.
|
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 |
ExpressionStatementTree
A tree node for an expression statement.
|
interface |
ForInLoopTree
A tree node for for..in statement
For example:
|
interface |
ForLoopTree
A tree node for a basic 'for' loop statement.
|
interface |
FunctionDeclarationTree
A tree node for a function declaration.
|
interface |
GotoTree
A tree node for a statement that jumps to a target.
|
interface |
IfTree
A tree node for an 'if' statement.
|
interface |
LabeledStatementTree
A tree node for a labeled statement.
|
interface |
LoopTree
A mixin for "loop" statements.
|
interface |
ReturnTree
A tree node for a 'return' statement.
|
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 |
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 |
---|---|
StatementTree |
IfTree.getElseStatement()
Returns the then statement of this 'if' statement.
|
StatementTree |
DoWhileLoopTree.getStatement()
The statement contained within this do-while statement.
|
StatementTree |
ForInLoopTree.getStatement()
The statement contained in this for..in statement.
|
StatementTree |
ForLoopTree.getStatement()
Returns the statement contained in this 'for' statement.
|
StatementTree |
LabeledStatementTree.getStatement()
Returns the statement being labeled.
|
StatementTree |
LoopTree.getStatement()
Returns the statement contained in this 'loop' statement.
|
StatementTree |
WhileLoopTree.getStatement()
The statement contained in this 'while' statement.
|
StatementTree |
WithTree.getStatement()
The statement contained in this 'with' statement.
|
StatementTree |
IfTree.getThenStatement()
Returns the 'then' statement of this 'if' statement.
|
Modifier and Type | Method and Description |
---|---|
List<? extends StatementTree> |
BlockTree.getStatements()
Returns the list of statements in this block.
|
List<? extends StatementTree> |
CaseTree.getStatements()
Return the list of statements for this 'case'.
|
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.