public interface SourceTryStatement extends SourceCompoundStatement
EMPTY_ARRAY
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
Modifier and Type | Method and Description |
---|---|
java.util.List<SourceCatchClause> |
getCatchClauses() |
java.util.List<JavaType> |
getCaughtExceptions()
Get the list of the exceptions caught in all the catch blocks
|
SourceFinallyClause |
getFinallyClause() |
java.util.List<SourceLocalVariableDeclaration> |
getResourceVariables()
Get the list of resource variables for the try, which is syntax new for JDK 7 and beyond
|
SourceTryResourcesList |
getResourceVariablesList()
Get the resource variable list which encompasses the parentheses and the variables inbetween.
|
boolean |
hasResourceVariables()
Determine if there is a resource variable list, meaning the parentheses with zero or more resource variables.
|
getControlExpression, getEndClause, getPrimaryClause
getStatementLabels, getStatementToken
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getJdkVersion, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
SourceTryResourcesList getResourceVariablesList()
java.util.List<SourceLocalVariableDeclaration> getResourceVariables()
boolean hasResourceVariables()
java.util.List<SourceCatchClause> getCatchClauses()
SourceFinallyClause getFinallyClause()
java.util.List<JavaType> getCaughtExceptions()