public abstract class EditablePostfixTemplateWithMultipleExpressions<ConditionType extends PostfixTemplateExpressionCondition> extends EditablePostfixTemplate
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<ConditionType> |
myExpressionConditions |
protected boolean |
myUseTopmostExpression |
Modifier | Constructor and Description |
---|---|
protected |
EditablePostfixTemplateWithMultipleExpressions(java.lang.String templateId,
java.lang.String templateName,
java.lang.String templateKey,
TemplateImpl liveTemplate,
java.lang.String example,
java.util.Set<ConditionType> expressionConditions,
boolean useTopmostExpression,
PostfixTemplateProvider provider) |
protected |
EditablePostfixTemplateWithMultipleExpressions(java.lang.String templateId,
java.lang.String templateName,
TemplateImpl liveTemplate,
java.lang.String example,
java.util.Set<ConditionType> expressionConditions,
boolean useTopmostExpression,
PostfixTemplateProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected static TemplateImpl |
createTemplate(java.lang.String templateText) |
boolean |
equals(java.lang.Object o) |
protected PsiElement |
getElementToRemove(PsiElement element) |
protected Condition<PsiElement> |
getExpressionCompositeCondition() |
java.util.Set<ConditionType> |
getExpressionConditions() |
protected abstract PsiElement |
getTopmostExpression(PsiElement element) |
int |
hashCode() |
boolean |
isUseTopmostExpression() |
addTemplateVariables, expand, getElementRenderer, getExpressions, getLiveTemplate, getProvider, isApplicable
calcDescription, getDescription, getExample, getId, getKey, getPresentableName, isBuiltin, isEditable, isEnabled, startInWriteAction
protected final java.util.Set<ConditionType extends PostfixTemplateExpressionCondition> myExpressionConditions
protected final boolean myUseTopmostExpression
protected EditablePostfixTemplateWithMultipleExpressions(java.lang.String templateId, java.lang.String templateName, TemplateImpl liveTemplate, java.lang.String example, java.util.Set<ConditionType> expressionConditions, boolean useTopmostExpression, PostfixTemplateProvider provider)
protected EditablePostfixTemplateWithMultipleExpressions(java.lang.String templateId, java.lang.String templateName, java.lang.String templateKey, TemplateImpl liveTemplate, java.lang.String example, java.util.Set<ConditionType> expressionConditions, boolean useTopmostExpression, PostfixTemplateProvider provider)
protected static TemplateImpl createTemplate(java.lang.String templateText)
protected PsiElement getElementToRemove(PsiElement element)
getElementToRemove
in class EditablePostfixTemplate
protected abstract PsiElement getTopmostExpression(PsiElement element)
public java.util.Set<ConditionType> getExpressionConditions()
public boolean isUseTopmostExpression()
public boolean equals(java.lang.Object o)
equals
in class EditablePostfixTemplate
protected Condition<PsiElement> getExpressionCompositeCondition()
public int hashCode()
hashCode
in class EditablePostfixTemplate