public class ClassFileViewProvider extends SingleRootFileViewProvider
FREE_THREADED
Constructor and Description |
---|
ClassFileViewProvider(PsiManager manager,
VirtualFile file) |
ClassFileViewProvider(PsiManager manager,
VirtualFile file,
boolean eventSystemEnabled) |
Modifier and Type | Method and Description |
---|---|
SingleRootFileViewProvider |
createCopy(VirtualFile copy)
Creates a copy of this view provider linked with the given (typically light) file.
|
protected PsiFile |
createFile(Project project,
VirtualFile file,
FileType fileType) |
PsiElement |
findElementAt(int offset) |
PsiElement |
findElementAt(int offset,
Language language) |
PsiReference |
findReferenceAt(int offset) |
PsiReference |
findReferenceAt(int offset,
Language language) |
static boolean |
isInnerClass(VirtualFile file) |
static boolean |
isInnerClass(VirtualFile file,
byte [] content) |
doNotCheckFileSizeLimit, fileSizeIsGreaterThan, findElementAt, forceCachedPsi, getAllFiles, getBaseLanguage, getCachedPsi, getCachedPsiFiles, getKnownTreeRoots, getLanguages, getPsiInner, isTooLargeForContentLoading, isTooLargeForContentLoading, isTooLargeForIntelligence, isTooLargeForIntelligence
beforeContentsSynchronized, clone, contentsSynchronized, createFile, createFile, findElementAt, 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, getContents, getDocument, getFileType, getManager, getModificationStamp, getPsi, getStubBindingRoot, getVirtualFile, hasLanguage, isEventSystemEnabled, isPhysical, rootChanged, supportsIncrementalReparse
putUserDataIfAbsent, replace
getUserData, putUserData
public ClassFileViewProvider(PsiManager manager, VirtualFile file)
public ClassFileViewProvider(PsiManager manager, VirtualFile file, boolean eventSystemEnabled)
protected PsiFile createFile(Project project, VirtualFile file, FileType fileType)
createFile
in class AbstractFileViewProvider
public static boolean isInnerClass(VirtualFile file)
public static boolean isInnerClass(VirtualFile file, byte [] content)
public SingleRootFileViewProvider createCopy(VirtualFile copy)
FileViewProvider
createCopy
in interface FileViewProvider
createCopy
in class SingleRootFileViewProvider
LightVirtualFile
,
FileViewProvider.isEventSystemEnabled()
public PsiElement findElementAt(int offset)
findElementAt
in interface FileViewProvider
findElementAt
in class SingleRootFileViewProvider
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int, Class)
,
FileViewProvider.findElementAt(int, Language)
,
PsiElement.findElementAt(int)
public PsiElement findElementAt(int offset, Language language)
findElementAt
in interface FileViewProvider
findElementAt
in class AbstractFileViewProvider
FileViewProvider.getBaseLanguage()
,
FileViewProvider.findElementAt(int)
public PsiReference findReferenceAt(int offset)
findReferenceAt
in interface FileViewProvider
findReferenceAt
in class SingleRootFileViewProvider
FileViewProvider.getBaseLanguage()
,
PsiElement.findReferenceAt(int)
,
FileViewProvider.findReferenceAt(int, Language)
public PsiReference findReferenceAt(int offset, Language language)
findReferenceAt
in interface FileViewProvider
findReferenceAt
in class AbstractFileViewProvider
FileViewProvider.getBaseLanguage()
,
PsiElement.findReferenceAt(int)
,
FileViewProvider.findReferenceAt(int)