public class FileContentImpl extends IndexedFileImpl implements PsiDependentFileContent
| Modifier and Type | Class and Description |
|---|---|
static class |
FileContentImpl.IllegalDataException |
myFile, myFileName, myFileType| Constructor and Description |
|---|
FileContentImpl(VirtualFile file,
byte [] content) |
FileContentImpl(VirtualFile file,
java.lang.CharSequence contentAsText,
long documentStamp) |
| Modifier and Type | Method and Description |
|---|---|
static FileContent |
createByFile(VirtualFile file) |
static FileContent |
createByFile(VirtualFile file,
Project project) |
PsiFile |
createFileFromText(java.lang.CharSequence text) |
static PsiFile |
createFileFromText(Project project,
java.lang.CharSequence text,
LanguageFileType fileType,
VirtualFile file,
java.lang.String fileName) |
java.nio.charset.Charset |
getCharset() |
byte [] |
getContent() |
java.lang.CharSequence |
getContentAsText() |
VirtualFile |
getFile() |
java.lang.String |
getFileName() |
FileType |
getFileTypeWithoutSubstitution() |
byte [] |
getHash(boolean fromDocument) |
LighterAST |
getLighterAST() |
Project |
getProject() |
PsiFile |
getPsiFile() |
PsiFile |
getPsiFileForPsiDependentIndex()
Deprecated.
|
long |
getStamp() |
boolean |
isPhysicalContent() |
void |
setHashes(byte [] fileContentHash,
byte [] documentHash) |
java.lang.String |
toString() |
getFileType, setProjectchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFileTypegetUserData, putUserDatapublic FileContentImpl(VirtualFile file, java.lang.CharSequence contentAsText, long documentStamp)
public FileContentImpl(VirtualFile file, byte [] content)
public PsiFile getPsiFile()
getPsiFile in interface FileContentgetPsiFile in interface PsiDependentFileContentpublic LighterAST getLighterAST()
getLighterAST in interface PsiDependentFileContentpublic PsiFile createFileFromText(java.lang.CharSequence text)
public static PsiFile createFileFromText(Project project, java.lang.CharSequence text, LanguageFileType fileType, VirtualFile file, java.lang.String fileName)
public static FileContent createByFile(VirtualFile file) throws java.io.IOException
java.io.IOExceptionpublic static FileContent createByFile(VirtualFile file, Project project) throws java.io.IOException
java.io.IOExceptionpublic FileType getFileTypeWithoutSubstitution()
public VirtualFile getFile()
getFile in interface IndexedFilegetFile in class IndexedFileImplpublic java.lang.String getFileName()
getFileName in interface IndexedFilegetFileName in class IndexedFileImplpublic java.nio.charset.Charset getCharset()
public long getStamp()
public boolean isPhysicalContent()
public byte [] getContent()
getContent in interface FileContentpublic java.lang.CharSequence getContentAsText()
getContentAsText in interface FileContentpublic java.lang.String toString()
toString in class java.lang.Objectpublic byte [] getHash(boolean fromDocument)
public void setHashes(byte [] fileContentHash,
byte [] documentHash)
@Deprecated public PsiFile getPsiFileForPsiDependentIndex()
FileContent.getPsiFile()public Project getProject()
getProject in interface IndexedFilegetProject in class IndexedFileImpl