public class DummyHolderViewProvider extends AbstractFileViewProvider
FREE_THREADED
Constructor and Description |
---|
DummyHolderViewProvider(PsiManager manager) |
Modifier and Type | Method and Description |
---|---|
FileViewProvider |
createCopy(VirtualFile copy)
Creates a copy of this view provider linked with the given (typically light) file.
|
PsiElement |
findElementAt(int offset) |
PsiElement |
findElementAt(int offset,
java.lang.Class<? extends Language> lang) |
PsiReference |
findReferenceAt(int offset) |
java.util.List<PsiFile> |
getAllFiles() |
Language |
getBaseLanguage() |
PsiFile |
getCachedPsi(Language target) |
java.util.List<PsiFile> |
getCachedPsiFiles() |
java.lang.CharSequence |
getContents() |
java.util.List<FileElement> |
getKnownTreeRoots() |
java.util.Set<Language> |
getLanguages() |
long |
getModificationStamp() |
protected PsiFile |
getPsiInner(Language target) |
void |
setDummyHolder(DummyHolder dummyHolder) |
beforeContentsSynchronized, clone, contentsSynchronized, createFile, createFile, createFile, findElementAt, findElementAt, findReferenceAt, findReferenceAt, getDocument, getFilePsiLock, getFileType, getManager, getPsi, getStubBindingRoot, getVirtualFile, isEventSystemEnabled, isFreeThreaded, isIgnored, isPhysical, markInvalidated, markPossiblyInvalidated, onContentReload, registerAsCopy, rootChanged, shouldCreatePsi, supportsIncrementalReparse, toString
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasLanguage
putUserDataIfAbsent, replace
getUserData, putUserData
public DummyHolderViewProvider(PsiManager manager)
public java.lang.CharSequence getContents()
getContents
in interface FileViewProvider
getContents
in class AbstractFileViewProvider
PsiDocumentManager.getLastCommittedText(Document)
.FileViewProvider.getDocument()
,
PsiDocumentManager.isUncommited(Document)
public Language getBaseLanguage()
PsiManager.findFile(VirtualFile)
,
PsiDocumentManager.getPsiFile(Document)
etc.public java.util.Set<Language> getLanguages()
FileViewProvider.getPsi(Language)
protected PsiFile getPsiInner(Language target)
getPsiInner
in class AbstractFileViewProvider
public PsiFile getCachedPsi(Language target)
getCachedPsi
in class AbstractFileViewProvider
public java.util.List<PsiFile> getCachedPsiFiles()
getCachedPsiFiles
in class AbstractFileViewProvider
public java.util.List<FileElement> getKnownTreeRoots()
getKnownTreeRoots
in class AbstractFileViewProvider
public java.util.List<PsiFile> getAllFiles()
FileViewProvider.getLanguages()
. The main file which corresponds to FileViewProvider.getBaseLanguage()
, should be the first one. Otherwise
the order is non-deterministic and should not be relied upon.public long getModificationStamp()
getModificationStamp
in interface FileViewProvider
getModificationStamp
in class AbstractFileViewProvider
VirtualFile
or Document
.
If a document is modified but not yet committed, the result is the same as PsiDocumentManager.getLastCommittedStamp(Document)
VirtualFile.getModificationStamp()
,
Document.getModificationStamp()
public void setDummyHolder(DummyHolder dummyHolder)
public PsiReference findReferenceAt(int offset)
FileViewProvider.getBaseLanguage()
,
PsiElement.findReferenceAt(int)
,
FileViewProvider.findReferenceAt(int, Language)
public PsiElement findElementAt(int offset, java.lang.Class<? extends Language> lang)
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int)
public FileViewProvider createCopy(VirtualFile copy)
FileViewProvider
public PsiElement findElementAt(int offset)
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int, Class)
,
FileViewProvider.findElementAt(int, Language)
,
PsiElement.findElementAt(int)