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 |
ClassExpressionTree |
A tree node that represents a class expression.
|
interface |
CompoundAssignmentTree |
A tree node for compound assignment operator.
|
interface |
ConditionalExpressionTree |
A tree node for the conditional operator ?
|
interface |
ErroneousTree |
A tree node to stand in for a malformed expression.
|
interface |
FunctionCallTree |
A tree node for a function call expression.
|
interface |
FunctionExpressionTree |
A tree node for function expressions including arrow functions.
|
interface |
IdentifierTree |
A tree node for an identifier expression.
|
interface |
InstanceOfTree |
A tree node for an 'instanceof' expression.
|
interface |
LiteralTree |
A tree node for a literal expression.
|
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 |
RegExpLiteralTree |
Represents regular expression literal in the source code.
|
interface |
SpreadTree |
A tree node for spread operator in array elements, function call arguments.
|
interface |
TemplateLiteralTree |
A tree node for template literal strings.
|
interface |
UnaryTree |
A tree node for postfix and unary expressions.
|
interface |
YieldTree |
A tree node for yield expressions used in generator functions.
|
Modifier and Type | Method | Description |
---|---|---|
ExpressionTree |
VariableTree.getBinding() |
Returns the binding of this declaration.
|
ExpressionTree |
ClassDeclarationTree.getClassHeritage() |
The expression of the
extends clause. |
ExpressionTree |
ClassExpressionTree.getClassHeritage() |
The expression of the
extends clause. |
ExpressionTree |
CatchTree.getCondition() |
Returns the optional catch condition expression.
|
ExpressionTree |
ConditionalExpressionTree.getCondition() |
Returns the condition expression of this ternary expression.
|
ExpressionTree |
ConditionalLoopTree.getCondition() |
Returns the condition expression of this 'loop' statement.
|
ExpressionTree |
DoWhileLoopTree.getCondition() |
Returns the condition expression of this do-while statement.
|
ExpressionTree |
ForLoopTree.getCondition() |
Returns the condition expression of this 'for' statement.
|
ExpressionTree |
IfTree.getCondition() |
Returns the condition expression of this 'if' statement.
|
ExpressionTree |
WhileLoopTree.getCondition() |
The condition expression of this 'while' statement.
|
ExpressionTree |
NewTree.getConstructorExpression() |
Returns the constructor expression of this 'new' expression.
|
ExpressionTree |
ArrayAccessTree.getExpression() |
Returns the array that is accessed.
|
ExpressionTree |
AssignmentTree.getExpression() |
Returns the right hand side (RHS) of this assignment.
|
ExpressionTree |
CaseTree.getExpression() |
Case expression of this 'case' statement.
|
ExpressionTree |
CompoundAssignmentTree.getExpression() |
Returns the right hand side (RHS) of this assignment.
|
ExpressionTree |
ExpressionStatementTree.getExpression() |
Returns the expression of this expression statement.
|
ExpressionTree |
ForInLoopTree.getExpression() |
The object or array being whose properties are iterated.
|
ExpressionTree |
ForOfLoopTree.getExpression() |
The object or array being whose properties are iterated.
|
ExpressionTree |
InstanceOfTree.getExpression() |
Returns the expression whose type is being checked.
|
ExpressionTree |
MemberSelectTree.getExpression() |
The object expression whose member is being selected.
|
ExpressionTree |
ParenthesizedTree.getExpression() |
Returns the expression within the parenthesis.
|
ExpressionTree |
ReturnTree.getExpression() |
Returns the expression being returned.
|
ExpressionTree |
SpreadTree.getExpression() |
Returns the expression that is being spread.
|
ExpressionTree |
SwitchTree.getExpression() |
Returns the expression on which this statement switches.
|
ExpressionTree |
ThrowTree.getExpression() |
Returns the expression being thrown.
|
ExpressionTree |
UnaryTree.getExpression() |
Returns the expression operated by the unary operator.
|
ExpressionTree |
YieldTree.getExpression() |
Returns the expression that is yielded.
|
ExpressionTree |
ConditionalExpressionTree.getFalseExpression() |
Returns the false part of this ternary expression.
|
ExpressionTree |
FunctionCallTree.getFunctionSelect() |
Returns the function being called.
|
ExpressionTree |
ArrayAccessTree.getIndex() |
Returns the index of the array element accessed.
|
ExpressionTree |
ForLoopTree.getInitializer() |
Returns the initializer expression of this 'for' statement.
|
ExpressionTree |
VariableTree.getInitializer() |
Returns the initial value expression for this variable.
|
ExpressionTree |
PropertyTree.getKey() |
Returns the name of this property.
|
ExpressionTree |
BinaryTree.getLeftOperand() |
Returns left hand side (LHS) of this binary expression.
|
ExpressionTree |
CatchTree.getParameter() |
Returns the catch parameter identifier or parameter binding pattern of the exception caught.
|
ExpressionTree |
BinaryTree.getRightOperand() |
Returns right hand side (RHS) of this binary expression.
|
ExpressionTree |
WithTree.getScope() |
The scope object expression for this 'with' statement.
|
ExpressionTree |
ConditionalExpressionTree.getTrueExpression() |
Returns the true part of this ternary expression.
|
ExpressionTree |
ForLoopTree.getUpdate() |
Returns the update expression of this 'for' statement.
|
ExpressionTree |
PropertyTree.getValue() |
Returns the value of this property.
|
ExpressionTree |
AssignmentTree.getVariable() |
Returns the left hand side (LHS) of this assignment.
|
ExpressionTree |
CompoundAssignmentTree.getVariable() |
Returns the left hand side (LHS) of this assignment.
|
ExpressionTree |
ForInLoopTree.getVariable() |
The for..in left hand side expression.
|
ExpressionTree |
ForOfLoopTree.getVariable() |
The for..in left hand side expression.
|
Modifier and Type | Method | Description |
---|---|---|
List<? extends ExpressionTree> |
FunctionCallTree.getArguments() |
Returns the list of arguments being passed to this function call.
|
List<? extends ExpressionTree> |
ArrayLiteralTree.getElements() |
Returns the list of Array element expressions.
|
List<? extends ExpressionTree> |
TemplateLiteralTree.getExpressions() |
Returns the list of expressions in this template string
|
List<? extends ExpressionTree> |
FunctionDeclarationTree.getParameters() |
Returns the parameters of this function.
|
List<? extends ExpressionTree> |
FunctionExpressionTree.getParameters() |
Returns the parameters of this function.
|
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, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b147-1