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