public class DefaultCodeFragmentFactory extends CodeFragmentFactory
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.String> |
KEY |
EXTENSION_POINT_NAME
Constructor and Description |
---|
DefaultCodeFragmentFactory() |
Modifier and Type | Method and Description |
---|---|
JavaCodeFragment |
createCodeFragment(TextWithImports item,
PsiElement context,
Project project) |
JavaCodeFragment |
createPresentationCodeFragment(TextWithImports item,
PsiElement context,
Project project) |
EvaluatorBuilder |
getEvaluatorBuilder()
In case if createCodeFragment returns java code use
com.intellij.debugger.engine.evaluation.expression.EvaluatorBuilderImpl#getInstance()
|
LanguageFileType |
getFileType() |
static DefaultCodeFragmentFactory |
getInstance() |
boolean |
isContextAccepted(PsiElement contextElement) |
static boolean |
isDebuggerFile(PsiFile file) |
public static final Key<java.lang.String> KEY
public static DefaultCodeFragmentFactory getInstance()
public JavaCodeFragment createPresentationCodeFragment(TextWithImports item, PsiElement context, Project project)
createPresentationCodeFragment
in class CodeFragmentFactory
public JavaCodeFragment createCodeFragment(TextWithImports item, PsiElement context, Project project)
createCodeFragment
in class CodeFragmentFactory
public boolean isContextAccepted(PsiElement contextElement)
isContextAccepted
in class CodeFragmentFactory
public LanguageFileType getFileType()
getFileType
in class CodeFragmentFactory
public EvaluatorBuilder getEvaluatorBuilder()
CodeFragmentFactory
getEvaluatorBuilder
in class CodeFragmentFactory
public static boolean isDebuggerFile(PsiFile file)