public abstract class PsiFileFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<PsiFile> |
ORIGINAL_FILE |
Constructor and Description |
---|
PsiFileFactory() |
Modifier and Type | Method and Description |
---|---|
abstract PsiFile |
createFileFromText(java.lang.CharSequence chars,
PsiFile original) |
abstract PsiFile |
createFileFromText(FileType fileType,
java.lang.String fileName,
java.lang.CharSequence chars,
int startOffset,
int endOffset) |
PsiFile |
createFileFromText(Language language,
java.lang.CharSequence text) |
abstract PsiFile |
createFileFromText(java.lang.String fileName,
FileType fileType,
java.lang.CharSequence text) |
abstract PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
java.lang.CharSequence text,
long modificationStamp,
boolean eventSystemEnabled) |
abstract PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
java.lang.CharSequence text,
long modificationStamp,
boolean eventSystemEnabled,
boolean markAsCopy) |
abstract PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text) |
abstract PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy) |
abstract PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy,
boolean noSizeLimit) |
abstract PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy,
boolean noSizeLimit,
VirtualFile original) |
abstract PsiFile |
createFileFromText(java.lang.String name,
java.lang.String text)
Deprecated.
Please use
createFileFromText(String, FileType, CharSequence) instead,
since file type detecting by file extension becomes vulnerable when file type mappings are changed. |
static PsiFileFactory |
getInstance(Project project) |
public static PsiFileFactory getInstance(Project project)
@Deprecated public abstract PsiFile createFileFromText(java.lang.String name, java.lang.String text) throws IncorrectOperationException
createFileFromText(String, FileType, CharSequence)
instead,
since file type detecting by file extension becomes vulnerable when file type mappings are changed.name
- the name of the file to create (the extension of the name determines the file type).text
- the text of the file to create.IncorrectOperationException
- if the file type with specified extension is binary.public abstract PsiFile createFileFromText(java.lang.String fileName, FileType fileType, java.lang.CharSequence text) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, FileType fileType, java.lang.CharSequence text, long modificationStamp, boolean eventSystemEnabled) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, FileType fileType, java.lang.CharSequence text, long modificationStamp, boolean eventSystemEnabled, boolean markAsCopy) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text) throws IncorrectOperationException
IncorrectOperationException
public PsiFile createFileFromText(Language language, java.lang.CharSequence text) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy, boolean noSizeLimit) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy, boolean noSizeLimit, VirtualFile original) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(FileType fileType, java.lang.String fileName, java.lang.CharSequence chars, int startOffset, int endOffset) throws IncorrectOperationException
IncorrectOperationException
public abstract PsiFile createFileFromText(java.lang.CharSequence chars, PsiFile original) throws IncorrectOperationException
IncorrectOperationException