public abstract class RenameableFakePsiElement extends FakePsiElement implements PsiMetaOwner, PsiPresentableMetaData
Iconable.IconFlags, Iconable.LastComputedIcon
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY
ARRAY_FACTORY
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 |
RenameableFakePsiElement(PsiElement parent) |
Modifier and Type | Method and Description |
---|---|
PsiFile |
getContainingFile()
Returns the file containing the PSI element.
|
PsiElement |
getDeclaration() |
javax.swing.Icon |
getIcon(boolean open)
Returns the icon representing the object.
|
Language |
getLanguage()
Returns the language of the PSI element.
|
PsiManager |
getManager()
Returns the PSI manager for the project to which the PSI element belongs.
|
PsiMetaData |
getMetaData() |
abstract java.lang.String |
getName()
Returns the name of the element.
|
java.lang.String |
getName(PsiElement context) |
PsiElement |
getParent()
Returns the parent of the PSI element.
|
Project |
getProject()
Returns the project to which the PSI element belongs.
|
TextRange |
getTextRange()
Returns the text range in the document occupied by the PSI element.
|
void |
init(PsiElement element) |
findElementAt, getChildren, getElementIcon, getFirstChild, getIcon, getLastChild, getLocationString, getNextSibling, getNode, getPresentableText, getPresentation, getPrevSibling, getStartOffsetInParent, getText, getTextLength, getTextOffset, isPhysical, setName, textContains, textToCharArray
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, checkAdd, checkDelete, copy, delete, deleteChildRange, findChildByClass, findChildrenByClass, findNotNullChildByClass, findReferenceAt, getContext, getNavigationElement, getOriginalElement, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isValid, isWritable, navigate, notNullChild, processDeclarations, replace, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, 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
getIcon, getTypeName
getDependences, getDependencies
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findReferenceAt, getContext, getCopyableUserData, getNavigationElement, getOriginalElement, getOwnReferences, getReference, getReferences, getResolveScope, getTextRangeInParent, getUseScope, isEquivalentTo, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textMatches, textMatches, toString
getUserData, putUserData
protected RenameableFakePsiElement(PsiElement parent)
public PsiElement getParent()
PsiElement
getParent
in interface PsiElement
public PsiFile getContainingFile()
PsiElement
getContainingFile
in interface PsiElement
getContainingFile
in class PsiElementBase
public abstract java.lang.String getName()
PsiNamedElement
getName
in interface NavigationItem
getName
in interface PsiMetaData
getName
in interface PsiNamedElement
getName
in class PsiElementBase
public Language getLanguage()
PsiElement
getLanguage
in interface PsiElement
getLanguage
in class FakePsiElement
public Project getProject()
PsiElement
getProject
in interface PsiElement
getProject
in class PsiElementBase
public PsiManager getManager()
PsiElement
getManager
in interface PsiElement
getManager
in class FakePsiElement
public PsiMetaData getMetaData()
getMetaData
in interface PsiMetaOwner
public PsiElement getDeclaration()
getDeclaration
in interface PsiMetaData
public java.lang.String getName(PsiElement context)
getName
in interface PsiMetaData
public void init(PsiElement element)
init
in interface PsiMetaData
public final javax.swing.Icon getIcon(boolean open)
ItemPresentation
getIcon
in interface ItemPresentation
getIcon
in class FakePsiElement
open
- Used to mean if open/close icons for tree renderer. No longer in use. The parameter is only there for API compatibility reason.public TextRange getTextRange()
PsiElement
getTextRange
in interface PsiElement
getTextRange
in class FakePsiElement