public class DummyHolder extends PsiFileImpl
Queryable.Contributor, Queryable.PrintInfo, Queryable.Util
Modifier and Type | Field and Description |
---|---|
protected PsiElement |
myContext |
BUILDING_STUB, myContentElementType, myManager, myOriginalFile
FLAGS_LOCKED, ICON_PLACEHOLDER
BATCH_REFERENCE_PROCESSING
EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
DummyHolder(PsiManager manager,
CharTable table,
boolean validity) |
DummyHolder(PsiManager manager,
CharTable table,
Language language) |
DummyHolder(PsiManager manager,
Language language,
PsiElement context) |
DummyHolder(PsiManager manager,
PsiElement context) |
DummyHolder(PsiManager manager,
PsiElement context,
CharTable table) |
DummyHolder(PsiManager manager,
TreeElement contentElement,
PsiElement context) |
DummyHolder(PsiManager manager,
TreeElement contentElement,
PsiElement context,
CharTable table) |
DummyHolder(PsiManager manager,
TreeElement contentElement,
PsiElement context,
CharTable table,
java.lang.Boolean validity,
Language language) |
Modifier and Type | Method and Description |
---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
protected PsiFileImpl |
clone() |
PsiElement |
getContext()
Returns the element which should be used as the parent of this element in a tree up
walk during a resolve operation.
|
FileType |
getFileType()
Returns the file type for the file.
|
Language |
getLanguage()
Returns the language of the PSI element.
|
FileElement |
getTreeElement() |
FileViewProvider |
getViewProvider() |
boolean |
isValid()
Checks if this PSI element is valid.
|
protected static Language |
language(PsiElement context,
Language defaultLanguage) |
java.lang.String |
toString()
toString() should never be presented to the user.
|
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, assertReadAccessAllowed, beforeAstChange, calcStubTree, calcTreeElement, canNavigate, canNavigateToSource, checkAdd, checkDelete, checkSetName, clearCaches, cloneImpl, copy, createContentLeafElement, createFileElement, delete, deleteChildRange, derefStub, findChildByClass, findChildrenByClass, findElementAt, findReferenceAt, getChildren, getContainingDirectory, getContainingFile, getContentElementType, getElementTypeForStubBuilder, getFileElementType, getFirstChild, getGreenStub, getGreenStubTree, getLastChild, getManager, getModificationStamp, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getResolveScope, getStartOffsetInParent, getStub, getStubbedSpine, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getUseScope, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isPhysical, isTemplateDataFile, isWritable, markInvalidated, navigate, onContentReload, processChildren, processDeclarations, putInfo, putInfo, replace, setContentElementType, setName, setOriginalFile, setTreeElementPointer, subtreeChanged, textContains, textMatches, textMatches, textToCharArray
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
protected final PsiElement myContext
public DummyHolder(PsiManager manager, TreeElement contentElement, PsiElement context)
public DummyHolder(PsiManager manager, CharTable table, boolean validity)
public DummyHolder(PsiManager manager, PsiElement context)
public DummyHolder(PsiManager manager, TreeElement contentElement, PsiElement context, CharTable table)
public DummyHolder(PsiManager manager, TreeElement contentElement, PsiElement context, CharTable table, java.lang.Boolean validity, Language language)
public DummyHolder(PsiManager manager, PsiElement context, CharTable table)
public DummyHolder(PsiManager manager, CharTable table, Language language)
public DummyHolder(PsiManager manager, Language language, PsiElement context)
protected static Language language(PsiElement context, Language defaultLanguage)
public PsiElement getContext()
PsiElement
getParent()
,
but the context can be overridden for some elements like code fragments (see
JavaCodeFragmentFactory.createCodeBlockCodeFragment(String, PsiElement, boolean)
).getContext
in interface PsiElement
getContext
in class PsiFileImpl
public boolean isValid()
PsiElement
PsiDocumentManager.commitDocument(com.intellij.openapi.editor.Document)
).
(In this case an attempt to change PSI will result in an exception).
Any access to invalid elements results in PsiInvalidElementAccessException
.
Once invalid, elements can't become valid again.
Elements become invalid in following cases:
PsiElement.delete()
)isValid
in interface PsiElement
isValid
in class PsiFileImpl
PsiUtilCore.ensureValid(PsiElement)
public void accept(PsiElementVisitor visitor)
PsiElement
visitor
- the visitor to pass the element to.public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class PsiFileImpl
public FileType getFileType()
PsiFile
public FileElement getTreeElement()
getTreeElement
in class PsiFileImpl
public Language getLanguage()
PsiElement
getLanguage
in interface PsiElement
getLanguage
in class PsiFileImpl
protected PsiFileImpl clone()
clone
in class PsiFileImpl
public FileViewProvider getViewProvider()
getViewProvider
in interface PsiFile
getViewProvider
in class PsiFileImpl