-
- 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 ExpressionTreegetExpression()The object or array being whose properties are iterated.StatementTreegetStatement()The statement contained in this for..of statement.ExpressionTreegetVariable()The for..of left hand side expression.-
Methods inherited from interface org.openjdk.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:
getStatementin interfaceLoopTree- Returns:
- the statement
-
-