public abstract class StringBasedPostfixTemplate extends PostfixTemplateWithExpressionSelector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXPR |
Constructor and Description |
---|
StringBasedPostfixTemplate(java.lang.String name,
java.lang.String example,
PostfixTemplateExpressionSelector selector)
|
StringBasedPostfixTemplate(java.lang.String name,
java.lang.String example,
PostfixTemplateExpressionSelector selector,
PostfixTemplateProvider provider) |
StringBasedPostfixTemplate(java.lang.String name,
java.lang.String key,
java.lang.String example,
PostfixTemplateExpressionSelector selector,
PostfixTemplateProvider provider) |
Modifier and Type | Method and Description |
---|---|
Template |
createTemplate(TemplateManager manager,
java.lang.String templateString) |
void |
expandForChooseExpression(PsiElement expr,
Editor editor) |
protected PsiElement |
getElementToRemove(PsiElement expr) |
abstract java.lang.String |
getTemplateString(PsiElement element) |
void |
setVariables(Template template,
PsiElement element) |
protected boolean |
shouldReformat() |
expand, isApplicable, prepareAndExpandForChooseExpression, startInWriteAction
calcDescription, equals, getDescription, getExample, getId, getKey, getPresentableName, getProvider, hashCode, isBuiltin, isEditable, isEnabled
public static final java.lang.String EXPR
@Deprecated public StringBasedPostfixTemplate(java.lang.String name, java.lang.String example, PostfixTemplateExpressionSelector selector)
public StringBasedPostfixTemplate(java.lang.String name, java.lang.String example, PostfixTemplateExpressionSelector selector, PostfixTemplateProvider provider)
public StringBasedPostfixTemplate(java.lang.String name, java.lang.String key, java.lang.String example, PostfixTemplateExpressionSelector selector, PostfixTemplateProvider provider)
public void expandForChooseExpression(PsiElement expr, Editor editor)
expandForChooseExpression
in class PostfixTemplateWithExpressionSelector
public Template createTemplate(TemplateManager manager, java.lang.String templateString)
public void setVariables(Template template, PsiElement element)
public abstract java.lang.String getTemplateString(PsiElement element)
protected boolean shouldReformat()
protected PsiElement getElementToRemove(PsiElement expr)