public interface PsiTryStatement extends PsiStatement
try ... catch ... finally statement.Iconable.IconFlags, Iconable.LastComputedIconARRAY_FACTORY, EMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
PsiParameter [] |
getCatchBlockParameters()
Returns the array of parameters for
catch sections. |
PsiCodeBlock [] |
getCatchBlocks()
Returns the array of code blocks executed in the
catch sections
of the statement. |
PsiCatchSection [] |
getCatchSections()
Returns the array of
catch sections in the statement. |
PsiCodeBlock |
getFinallyBlock()
Returns the code block executed in the
finally section. |
PsiResourceList |
getResourceList()
Returns a resource list of try-with-resources statement.
|
PsiCodeBlock |
getTryBlock()
Returns the code block executed by the
try statement. |
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDataPsiCodeBlock getTryBlock()
try statement.PsiCodeBlock [] getCatchBlocks()
catch sections
of the statement.PsiParameter [] getCatchBlockParameters()
catch sections.PsiCatchSection [] getCatchSections()
catch sections in the statement.catch sections, or an empty array if the statement
has no catch sections.PsiCodeBlock getFinallyBlock()
finally section.finally section, or null if the statement
does not have one.PsiResourceList getResourceList()