public interface PsiSwitchBlock extends PsiElement
switch
statement or switch
expression.PsiSwitchStatement
,
PsiSwitchExpression
Iconable.IconFlags, Iconable.LastComputedIcon
ARRAY_FACTORY, EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
PsiCodeBlock |
getBody()
Returns the body of the switch statement, or
null if the statement is incomplete. |
PsiExpression |
getExpression()
Returns the selector expression on which the switch is performed, or
null if the statement is incomplete. |
PsiJavaToken |
getLParenth() |
PsiJavaToken |
getRParenth() |
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
PsiExpression getExpression()
null
if the statement is incomplete.PsiCodeBlock getBody()
null
if the statement is incomplete.PsiJavaToken getLParenth()
PsiJavaToken getRParenth()