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 CodeFragmentFactorypublic JavaCodeFragment createCodeFragment(TextWithImports item, PsiElement context, Project project)
createCodeFragment in class CodeFragmentFactorypublic boolean isContextAccepted(PsiElement contextElement)
isContextAccepted in class CodeFragmentFactorypublic LanguageFileType getFileType()
getFileType in class CodeFragmentFactorypublic EvaluatorBuilder getEvaluatorBuilder()
CodeFragmentFactorygetEvaluatorBuilder in class CodeFragmentFactorypublic static boolean isDebuggerFile(PsiFile file)