public interface PsiCodeBlock extends PsiElement, PsiModifiableCodeBlock
Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
static PsiCodeBlock[] |
EMPTY_ARRAY
The empty array of PSI code blocks which can be reused to avoid unnecessary allocations.
|
ARRAY_FACTORY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Modifier and Type | Method and Description |
---|---|
PsiElement |
getFirstBodyElement()
Returns the first PSI element contained in the block.
|
PsiElement |
getLastBodyElement()
Returns the last PSI element contained in the block.
|
PsiJavaToken |
getLBrace()
Returns the opening curly brace of the block.
|
PsiJavaToken |
getRBrace()
Returns the closing curly brace of the block.
|
default int |
getStatementCount() |
PsiStatement [] |
getStatements()
Returns the array of statements contained in the block.
Please note that this method doesn't return comments which are not part of statements. |
default boolean |
isEmpty() |
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
shouldChangeModificationCount
static final PsiCodeBlock[] EMPTY_ARRAY
PsiStatement [] getStatements()
PsiElement getFirstBodyElement()
PsiElement getLastBodyElement()
PsiJavaToken getLBrace()
PsiJavaToken getRBrace()
default int getStatementCount()
default boolean isEmpty()