public abstract class JavaCodeContextType extends TemplateContextType
Modifier and Type | Class and Description |
---|---|
static class |
JavaCodeContextType.Declaration |
static class |
JavaCodeContextType.Expression |
static class |
JavaCodeContextType.Generic |
static class |
JavaCodeContextType.Statement |
EP_NAME
Modifier | Constructor and Description |
---|---|
protected |
JavaCodeContextType(java.lang.String id,
java.lang.String presentableName,
java.lang.Class<? extends TemplateContextType> baseContextType) |
Modifier and Type | Method and Description |
---|---|
Document |
createDocument(java.lang.CharSequence text,
Project project) |
SyntaxHighlighter |
createHighlighter() |
protected abstract boolean |
isInContext(PsiElement element) |
boolean |
isInContext(PsiFile file,
int offset) |
clearCachedBaseContextType, getBaseContextType, getContextId, getPresentableName, isExpandableFromEditor
protected JavaCodeContextType(java.lang.String id, java.lang.String presentableName, java.lang.Class<? extends TemplateContextType> baseContextType)
public boolean isInContext(PsiFile file, int offset)
isInContext
in class TemplateContextType
protected abstract boolean isInContext(PsiElement element)
public SyntaxHighlighter createHighlighter()
createHighlighter
in class TemplateContextType
public Document createDocument(java.lang.CharSequence text, Project project)
createDocument
in class TemplateContextType