public class SingleRootFileViewProvider extends AbstractFileViewProvider implements FileViewProvider
FREE_THREADED
Modifier | Constructor and Description |
---|---|
|
SingleRootFileViewProvider(PsiManager manager,
VirtualFile file) |
|
SingleRootFileViewProvider(PsiManager manager,
VirtualFile virtualFile,
boolean eventSystemEnabled) |
|
SingleRootFileViewProvider(PsiManager manager,
VirtualFile virtualFile,
boolean eventSystemEnabled,
FileType fileType) |
protected |
SingleRootFileViewProvider(PsiManager manager,
VirtualFile virtualFile,
boolean eventSystemEnabled,
Language language) |
beforeContentsSynchronized, clone, contentsSynchronized, createFile, createFile, createFile, findElementAt, findElementAt, findReferenceAt, findReferenceAt, getContents, getDocument, getFilePsiLock, getFileType, getManager, getModificationStamp, 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
beforeContentsSynchronized, clone, contentsSynchronized, findElementAt, findReferenceAt, getContents, getDocument, getFileType, getManager, getModificationStamp, getPsi, getStubBindingRoot, getVirtualFile, hasLanguage, isEventSystemEnabled, isPhysical, rootChanged, supportsIncrementalReparse
putUserDataIfAbsent, replace
getUserData, putUserData
public SingleRootFileViewProvider(PsiManager manager, VirtualFile file)
public SingleRootFileViewProvider(PsiManager manager, VirtualFile virtualFile, boolean eventSystemEnabled)
public SingleRootFileViewProvider(PsiManager manager, VirtualFile virtualFile, boolean eventSystemEnabled, FileType fileType)
protected SingleRootFileViewProvider(PsiManager manager, VirtualFile virtualFile, boolean eventSystemEnabled, Language language)
public Language getBaseLanguage()
getBaseLanguage
in interface FileViewProvider
PsiManager.findFile(VirtualFile)
,
PsiDocumentManager.getPsiFile(Document)
etc.public java.util.Set<Language> getLanguages()
getLanguages
in interface FileViewProvider
FileViewProvider.getPsi(Language)
public java.util.List<PsiFile> getAllFiles()
getAllFiles
in interface FileViewProvider
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.protected PsiFile getPsiInner(Language target)
getPsiInner
in class AbstractFileViewProvider
public final PsiFile getCachedPsi(Language target)
getCachedPsi
in class AbstractFileViewProvider
public final java.util.List<PsiFile> getCachedPsiFiles()
getCachedPsiFiles
in class AbstractFileViewProvider
public final java.util.List<FileElement> getKnownTreeRoots()
getKnownTreeRoots
in class AbstractFileViewProvider
public static boolean isTooLargeForIntelligence(VirtualFile vFile)
public static boolean isTooLargeForContentLoading(VirtualFile vFile)
public static void doNotCheckFileSizeLimit(VirtualFile vFile)
public static boolean isTooLargeForIntelligence(VirtualFile file, long contentSize)
public static boolean isTooLargeForContentLoading(VirtualFile vFile, long contentSize)
public static boolean fileSizeIsGreaterThan(VirtualFile vFile, long maxBytes)
public SingleRootFileViewProvider createCopy(VirtualFile copy)
FileViewProvider
createCopy
in interface FileViewProvider
LightVirtualFile
,
FileViewProvider.isEventSystemEnabled()
public PsiReference findReferenceAt(int offset)
findReferenceAt
in interface FileViewProvider
FileViewProvider.getBaseLanguage()
,
PsiElement.findReferenceAt(int)
,
FileViewProvider.findReferenceAt(int, Language)
public PsiElement findElementAt(int offset)
findElementAt
in interface FileViewProvider
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int, Class)
,
FileViewProvider.findElementAt(int, Language)
,
PsiElement.findElementAt(int)
public PsiElement findElementAt(int offset, java.lang.Class<? extends Language> lang)
findElementAt
in interface FileViewProvider
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int)
public final void forceCachedPsi(PsiFile psiFile)