public abstract class SurroundPostfixTemplateBase extends PostfixTemplateWithExpressionSelector
Modifier and Type | Field and Description |
---|---|
protected PostfixTemplatePsiInfo |
myPsiInfo |
Modifier | Constructor and Description |
---|---|
protected |
SurroundPostfixTemplateBase(java.lang.String name,
java.lang.String descr,
PostfixTemplatePsiInfo psiInfo,
PostfixTemplateExpressionSelector selector) |
Modifier and Type | Method and Description |
---|---|
protected PsiElement |
createNew(PsiElement expression) |
void |
expandForChooseExpression(PsiElement expression,
Editor editor) |
protected java.lang.String |
getHead() |
protected PsiElement |
getReplacedExpression(PsiElement expression) |
protected abstract Surrounder |
getSurrounder() |
protected java.lang.String |
getTail() |
protected PsiElement |
getWrappedExpression(PsiElement expression) |
expand, isApplicable, prepareAndExpandForChooseExpression, startInWriteAction
calcDescription, equals, getDescription, getExample, getId, getKey, getPresentableName, getProvider, hashCode, isBuiltin, isEditable, isEnabled
protected final PostfixTemplatePsiInfo myPsiInfo
protected SurroundPostfixTemplateBase(java.lang.String name, java.lang.String descr, PostfixTemplatePsiInfo psiInfo, PostfixTemplateExpressionSelector selector)
public final void expandForChooseExpression(PsiElement expression, Editor editor)
expandForChooseExpression
in class PostfixTemplateWithExpressionSelector
protected PsiElement getReplacedExpression(PsiElement expression)
protected PsiElement getWrappedExpression(PsiElement expression)
protected PsiElement createNew(PsiElement expression)
protected java.lang.String getHead()
protected java.lang.String getTail()
protected abstract Surrounder getSurrounder()