public interface SourceTryStatement extends SourceCompoundStatement
EMPTY_ARRAYCHILDREN_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()
Deprecated.
Use getTryResourcesElements instead
|
SourceTryResourcesList |
getResourceVariablesList()
Deprecated.
Use getTryResourcesList instead
|
java.util.List<SourceTryResourcesElement> |
getTryResourcesElements()
Get the list of try resource elements for the try.
|
SourceTryResourcesList |
getTryResourcesList()
Get the try resources list which encompasses the parentheses
and the try resources elements inbetween.
|
boolean |
hasResourceVariables()
Deprecated.
Use hasTryResourceElements instead
|
boolean |
hasTryResourcesElements()
Determine if there is a try resources element list, meaning the parentheses
with zero or more try resources elements.
|
getControlExpression, getEndClause, getPrimaryClausegetStatementLabels, getStatementTokenaddSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, createContext, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getContext, getEndOffset, getFirstToken, getJdkVersion, getLastToken, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingAfter, getSiblingBefore, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, getTokens, hasErrors, print, print, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf@Deprecated SourceTryResourcesList getResourceVariablesList()
hasResourceVariables,
getResourceVariablesSourceTryResourcesList getTryResourcesList()
hasTryResourcesElements,
getTryResourcesElements@Deprecated java.util.List<SourceLocalVariableDeclaration> getResourceVariables()
java.util.List<SourceTryResourcesElement> getTryResourcesElements()
@Deprecated boolean hasResourceVariables()
boolean hasTryResourcesElements()
java.util.List<SourceCatchClause> getCatchClauses()
SourceFinallyClause getFinallyClause()
java.util.List<JavaType> getCaughtExceptions()