public class PsiFileFactoryImpl extends PsiFileFactory
ORIGINAL_FILE
Constructor and Description |
---|
PsiFileFactoryImpl(Project project) |
PsiFileFactoryImpl(PsiManager manager) |
Modifier and Type | Method and Description |
---|---|
PsiElement |
createElementFromText(java.lang.String text,
Language language,
IElementType type,
PsiElement context) |
PsiFile |
createFileFromText(java.lang.CharSequence chars,
PsiFile original) |
PsiFile |
createFileFromText(FileType fileType,
java.lang.String fileName,
java.lang.CharSequence chars,
int startOffset,
int endOffset) |
PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
java.lang.CharSequence text) |
PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
java.lang.CharSequence text,
long modificationStamp,
boolean eventSystemEnabled) |
PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
java.lang.CharSequence text,
long modificationStamp,
boolean eventSystemEnabled,
boolean markAsCopy) |
PsiFile |
createFileFromText(java.lang.String name,
FileType fileType,
Language language,
Language targetLanguage,
java.lang.CharSequence text,
long modificationStamp,
boolean physical,
boolean markAsCopy) |
PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text) |
PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy) |
PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy,
boolean noSizeLimit) |
PsiFile |
createFileFromText(java.lang.String name,
Language language,
java.lang.CharSequence text,
boolean eventSystemEnabled,
boolean markAsCopy,
boolean noSizeLimit,
VirtualFile original) |
PsiFile |
createFileFromText(java.lang.String name,
java.lang.String text)
Creates a file from the specified text.
|
static void |
markGenerated(PsiElement element) |
PsiFile |
trySetupPsiForFile(LightVirtualFile virtualFile,
Language language,
boolean physical,
boolean markAsCopy) |
createFileFromText, getInstance
public PsiFileFactoryImpl(Project project)
public PsiFileFactoryImpl(PsiManager manager)
public PsiFile createFileFromText(java.lang.String name, FileType fileType, java.lang.CharSequence text, long modificationStamp, boolean eventSystemEnabled)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy, boolean noSizeLimit)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, Language language, java.lang.CharSequence text, boolean eventSystemEnabled, boolean markAsCopy, boolean noSizeLimit, VirtualFile original)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, FileType fileType, java.lang.CharSequence text, long modificationStamp, boolean eventSystemEnabled, boolean markAsCopy)
createFileFromText
in class PsiFileFactory
public PsiFile trySetupPsiForFile(LightVirtualFile virtualFile, Language language, boolean physical, boolean markAsCopy)
public PsiFile createFileFromText(java.lang.String name, FileType fileType, Language language, Language targetLanguage, java.lang.CharSequence text, long modificationStamp, boolean physical, boolean markAsCopy)
public PsiFile createFileFromText(java.lang.String name, FileType fileType, java.lang.CharSequence text)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.String name, java.lang.String text)
PsiFileFactory
createFileFromText
in class PsiFileFactory
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.public PsiFile createFileFromText(FileType fileType, java.lang.String fileName, java.lang.CharSequence chars, int startOffset, int endOffset)
createFileFromText
in class PsiFileFactory
public PsiFile createFileFromText(java.lang.CharSequence chars, PsiFile original)
createFileFromText
in class PsiFileFactory
public PsiElement createElementFromText(java.lang.String text, Language language, IElementType type, PsiElement context)
public static void markGenerated(PsiElement element)