Interface TryStatementTree
- All Superinterfaces:
StatementTree,Tree
- All Known Implementing Classes:
TryStatementTreeImpl
'try' statement.
JLS 14.20
tryblock()catches()finallyfinallyBlock()try (resourceList())block()catches()finallyfinallyBlock()
- Since:
- Java 1.3
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionblock()catches()Until Java 9, resource could only be instance ofVariableTree.
-
Method Details
-
tryKeyword
SyntaxToken tryKeyword() -
openParenToken
-
resourceList
Until Java 9, resource could only be instance ofVariableTree. Since Java 9 it is possible to refer to resources by existing effectively final variables, so list can also containIdentifierTreeorMemberSelectExpressionTree.- Since:
- Java 9
-
closeParenToken
-
block
BlockTree block() -
catches
-
finallyKeyword
-
finallyBlock
-