软件包  jdk.nashorn.api.tree

Interface ForLoopTree

  • All Superinterfaces:
    ConditionalLoopTreeLoopTreeStatementTree

    @Deprecated(since="11",
                forRemoval=true)
    public interface ForLoopTree
    extends ConditionalLoopTree
    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'循环语句的树节点。 例如:
      for ( initializer ; condition ; update )
           statement 
    从以下版本开始:
    9
    • 方法详细信息

      • getInitializer

        ExpressionTree getInitializer()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此'for'语句的初始化表达式。
        结果
        初始化表达式
      • getCondition

        ExpressionTree getCondition()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此'for'语句的条件表达式。
        Specified by:
        getCondition在界面 ConditionalLoopTree
        结果
        条件表达式
      • getUpdate

        ExpressionTree getUpdate()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此'for'语句的更新表达式。
        结果
        更新表达式
      • getStatement

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