-
- All Superinterfaces:
-
ConditionalLoopTree,LoopTree,StatementTree,树
@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
-
-
方法摘要
所有方法 实例方法 抽象方法 弃用的方法 变量和类型 方法 描述 ExpressionTreegetCondition()不推荐使用,要删除:此API元素将在以后的版本中删除。返回此'for'语句的条件表达式。ExpressionTreegetInitializer()不推荐使用,要删除:此API元素将在以后的版本中删除。返回此'for'语句的初始化表达式。StatementTreegetStatement()不推荐使用,要删除:此API元素将在以后的版本中删除。返回此'for'语句中包含的语句。ExpressionTreegetUpdate()不推荐使用,要删除:此API元素将在以后的版本中删除。返回此'for'语句的更新表达式。-
声明方法的接口 jdk.nashorn.api.tree.树
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
方法详细信息
-
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 - 结果
- 该声明
-
-