-
- All Superinterfaces:
LoopTree
,StatementTree
,Tree
public interface ForOfLoopTree extends LoopTree
A tree node for for..of statement. For example:for ( variable of expression ) statement
- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionTree
getExpression()
The object or array being whose properties are iterated.StatementTree
getStatement()
The statement contained in this for..of statement.ExpressionTree
getVariable()
The for..of left hand side expression.-
Methods inherited from interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
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
-
-