Interface ForOfLoopTree

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 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 interface LoopTree
      Returns:
      the statement