软件包  jdk.nashorn.api.tree

Interface ForOfLoopTree

  • All Superinterfaces:
    LoopTreeStatementTree

    @Deprecated(since="11",            forRemoval=true)public interface ForOfLoopTreeextends LoopTree
    Deprecated, for removal: This API element is subject to removal in a future version.
    Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.
    树节点,用于for..of statement 例如:
      for ( variable of expression )       statement 
    从以下版本开始:
    9
    • 方法详细信息

      • getVariable

        ExpressionTree getVariable()
        Deprecated, for removal: This API element is subject to removal in a future version.
        左手边的表情。
        结果
        左手边的表情
      • getExpression

        ExpressionTree getExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        迭代其属性的对象或数组。
        结果
        正在迭代的对象或数组表达式
      • getStatement

        StatementTree getStatement()
        Deprecated, for removal: This API element is subject to removal in a future version.
        声明中包含的声明。
        Specified by:
        getStatement在界面 LoopTree
        结果
        该声明