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 |
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 a function expression.
|
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 |
UnaryTree
A tree node for postfix and unary expressions.
|
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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 |
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 |
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.
|
Modifier and Type | Method and 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> |
FunctionDeclarationTree.getParameters()
Returns the parameters of this function.
|
List<? extends ExpressionTree> |
FunctionExpressionTree.getParameters()
Returns the parameters of this function.
|
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-b94