-
- All Superinterfaces:
-
StatementTree,树
public interface TryTree extends StatementTree
try语句的树节点。 例如:try block catches finally finallyBlock- 从以下版本开始:
- 1.6
- See The Java™ Language Specification:
- 第14.20节
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 BlockTreegetBlock()返回try语句的块。List<? extends CatchTree>getCatches()返回try语句中提供的任何catch块。BlockTreegetFinallyBlock()返回try语句中提供的finally块,如果没有,则返回null。List<? extends 树>getResources()返回try语句中提供的任何资源声明。
-