public interface PsiSwitchLabelStatementBase extends PsiStatement
switch
statement.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 |
---|---|
default PsiExpression |
getCaseValue()
Deprecated.
doesn't support enhanced "switch" statements; use
getCaseValues() instead |
PsiExpressionList |
getCaseValues()
Returns the constants associated with the
case block,
or null if the statement is incomplete or the element represents a default section. |
PsiSwitchBlock |
getEnclosingSwitchBlock()
Returns the
switch block (a statement or an expression) with which the section is associated,
or null if the element is not valid in its current context. |
default PsiSwitchStatement |
getEnclosingSwitchStatement()
Deprecated.
doesn't support "switch" expressions; use
getEnclosingSwitchBlock() instead |
boolean |
isDefaultCase()
Returns
true if the element represents a default section, false otherwise. |
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
boolean isDefaultCase()
true
if the element represents a default
section, false
otherwise.PsiExpressionList getCaseValues()
case
block,
or null
if the statement is incomplete or the element represents a default
section.@Deprecated default PsiExpression getCaseValue()
getCaseValues()
insteadPsiSwitchBlock getEnclosingSwitchBlock()
switch
block (a statement or an expression) with which the section is associated,
or null
if the element is not valid in its current context.@Deprecated default PsiSwitchStatement getEnclosingSwitchStatement()
getEnclosingSwitchBlock()
instead