ForOfLoopTree (Java SE 10 & JDK 10 )
Keywords: jdk.nashorn.api.tree.ForOfLoopTree interface

Module jdk.scripting.nashorn
Package jdk.nashorn.api.tree

## 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

- - ### Nested Class Summary

    - ### Nested classes/interfaces declared in interface jdk.nashorn.api.tree.Tree

      `Tree.Kind`

  - ### 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 declared in 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 interface `LoopTree`
      Returns:
        the statement