- All Superinterfaces:
LoopTree
,StatementTree
,Tree
A tree node for for..of statement.
For example:
for ( variable of expression ) statement
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe object or array being whose properties are iterated.The statement contained in this for..of statement.The for..of left hand side expression.Methods inherited from interface org.openjdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getVariable
ExpressionTree getVariable()The for..of left hand side expression.- Returns:
- the left hand side expression
-
getExpression
ExpressionTree getExpression()The object or array being whose properties are iterated.- Returns:
- the object or array expression being iterated
-
getStatement
StatementTree getStatement()The statement contained in this for..of statement.- Specified by:
getStatement
in interfaceLoopTree
- Returns:
- the statement
-