public abstract class ClsRepositoryPsiElement<T extends StubElement> extends ClsElementImpl implements StubBasedPsiElement<T>
ClsElementImpl.InvalidMirrorException
Iconable.IconFlags, Iconable.LastComputedIcon
COMPILED_ELEMENT, NEXT_LINE
FLAGS_LOCKED, ICON_PLACEHOLDER
ARRAY_FACTORY, EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
ClsRepositoryPsiElement(T stub) |
Modifier and Type | Method and Description |
---|---|
PsiElement [] |
getChildren()
Returns the array of children for the PSI element.
|
PsiFile |
getContainingFile()
Returns the file containing the PSI element.
|
IStubElementType |
getElementType() |
PsiElement |
getFirstChild()
Returns the first child of the PSI element.
|
PsiElement |
getLastChild()
Returns the last child of the PSI element.
|
PsiManager |
getManager()
Returns the PSI manager for the project to which the PSI element belongs.
|
PsiElement |
getNextSibling()
Returns the next sibling of the PSI element.
|
PsiElement |
getParent()
Returns the parent of the PSI element.
|
PsiElement |
getPrevSibling()
Returns the previous sibling of the PSI element.
|
T |
getStub() |
boolean |
isPhysical()
Checks if an actual source or class file corresponds to the element.
|
add, addAfter, addBefore, appendMirrorText, appendText, appendText, checkAdd, checkDelete, copy, delete, findElementAt, findReferenceAt, getChildren, getIndentSize, getLanguage, getMirror, getNode, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, isValid, isWritable, replace, setMirror, setMirror, setMirrorCheckingType, setMirrorIfPresent, setMirrors, setMirrors, textMatches, textMatches, textToCharArray
accept, acceptChildren, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, getContext, getName, getNavigationElement, getOriginalElement, getPresentation, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, navigate, notNullChild, processDeclarations, textContains
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getContext, getCopyableUserData, getLanguage, getNavigationElement, getNode, getOriginalElement, getOwnReferences, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toString
getUserData, putUserData
protected ClsRepositoryPsiElement(T stub)
public IStubElementType getElementType()
getElementType
in interface StubBasedPsiElement<T extends StubElement>
public PsiElement getParent()
PsiElement
getParent
in interface PsiElement
public PsiManager getManager()
PsiElement
getManager
in interface PsiElement
getManager
in class ClsElementImpl
public PsiFile getContainingFile()
PsiElement
getContainingFile
in interface PsiElement
getContainingFile
in class ClsElementImpl
public T getStub()
getStub
in interface StubBasedPsiElement<T extends StubElement>
public boolean isPhysical()
PsiElement
PsiDocumentManager.getDocument(PsiFile)
returns null for non-physical elements.
Not to be confused with FileViewProvider.isPhysical()
.isPhysical
in interface PsiElement
isPhysical
in class ClsElementImpl
public PsiElement [] getChildren()
PsiElement
getChildren
in interface PsiElement
public PsiElement getFirstChild()
PsiElement
getFirstChild
in interface PsiElement
getFirstChild
in class PsiElementBase
public PsiElement getLastChild()
PsiElement
getLastChild
in interface PsiElement
getLastChild
in class PsiElementBase
public PsiElement getNextSibling()
PsiElement
getNextSibling
in interface PsiElement
getNextSibling
in class PsiElementBase
public PsiElement getPrevSibling()
PsiElement
getPrevSibling
in interface PsiElement
getPrevSibling
in class PsiElementBase