软件包  jdk.nashorn.api.tree

Interface ForInLoopTree

  • All Superinterfaces:
    LoopTreeStatementTree

    @Deprecated(since="11",            forRemoval=true)public interface ForInLoopTreeextends 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..in语句的树节点例如:
      for ( variable in expression )       statement 
    从以下版本开始:
    9
    • 方法详细信息

      • getVariable

        ExpressionTree getVariable()
        Deprecated, for removal: This API element is subject to removal in a future version.
        for..in左侧表达式。
        结果
        左手边的表情
      • 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.
        此for..in语句中包含的声明。
        Specified by:
        getStatement接口 LoopTree
        结果
        该声明
      • isForEach

        boolean isForEach()
        Deprecated, for removal: This API element is subject to removal in a future version.
        如果这是for..each..in语句,则返回。
        结果
        如果这是for..each..in语句,则返回true