public interface PsiCatchSection extends PsiElement
catch
section of a Java try ... catch
statement.Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static ArrayFactory<PsiCatchSection> |
ARRAY_FACTORY |
static PsiCatchSection[] |
EMPTY_ARRAY
The empty array of PSI catch sections which can be reused to avoid unnecessary allocations.
|
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
PsiCodeBlock |
getCatchBlock()
Returns the code block contained in the catch section.
|
PsiType |
getCatchType()
Returns the type of the caught exception.
|
PsiJavaToken |
getLParenth() |
PsiParameter |
getParameter()
Returns the variable in which the caught exception is captured.
|
java.util.List<PsiType> |
getPreciseCatchTypes()
For language level 7 or higher returns the list of possible types for its parameter re-throw
(as defined in Project Coin/JSR 334 section "Multi-catch and more precise rethrow").
|
PsiJavaToken |
getRParenth() |
PsiTryStatement |
getTryStatement()
Returns the
try statement to which the catch section is attached. |
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, toString
getUserData, putUserData
static final PsiCatchSection[] EMPTY_ARRAY
static final ArrayFactory<PsiCatchSection> ARRAY_FACTORY
PsiParameter getParameter()
PsiCodeBlock getCatchBlock()
PsiType getCatchType()
java.util.List<PsiType> getPreciseCatchTypes()
PsiTryStatement getTryStatement()
try
statement to which the catch section is attached.PsiJavaToken getRParenth()
PsiJavaToken getLParenth()