public abstract class PostfixTemplateExpressionSelectorBase extends java.lang.Object implements PostfixTemplateExpressionSelector
PostfixTemplateExpressionSelector
.
You need impl method getNonFilteredExpressions(com.intellij.psi.PsiElement, com.intellij.openapi.editor.Document, int)
Modifier and Type | Field and Description |
---|---|
protected Condition<PsiElement> |
myAdditionalCondition |
Constructor and Description |
---|
PostfixTemplateExpressionSelectorBase(Condition<PsiElement> condition) |
Modifier and Type | Method and Description |
---|---|
protected Condition<PsiElement> |
getBorderOffsetFilter(int offset) |
java.util.List<PsiElement> |
getExpressions(PsiElement context,
Document document,
int offset)
Return list of all possible expressions in the current position.
|
protected Condition<PsiElement> |
getFilters(int offset) |
protected abstract java.util.List<PsiElement> |
getNonFilteredExpressions(PsiElement context,
Document document,
int offset) |
protected Condition<PsiElement> |
getPsiErrorFilter() |
Function<PsiElement,java.lang.String> |
getRenderer()
returns renderer for expressions from
PostfixTemplateExpressionSelector.getExpressions(com.intellij.psi.PsiElement, com.intellij.openapi.editor.Document, int) . |
boolean |
hasExpression(PsiElement context,
Document copyDocument,
int newOffset)
Check that we can select not-null expression(PsiElement) in current context
|
protected final Condition<PsiElement> myAdditionalCondition
public PostfixTemplateExpressionSelectorBase(Condition<PsiElement> condition)
public boolean hasExpression(PsiElement context, Document copyDocument, int newOffset)
PostfixTemplateExpressionSelector
hasExpression
in interface PostfixTemplateExpressionSelector
protected Condition<PsiElement> getBorderOffsetFilter(int offset)
public java.util.List<PsiElement> getExpressions(PsiElement context, Document document, int offset)
PostfixTemplateExpressionSelector
getExpressions
in interface PostfixTemplateExpressionSelector
public Function<PsiElement,java.lang.String> getRenderer()
PostfixTemplateExpressionSelector
PostfixTemplateExpressionSelector.getExpressions(com.intellij.psi.PsiElement, com.intellij.openapi.editor.Document, int)
.
Renderer is used for showing popup choosergetRenderer
in interface PostfixTemplateExpressionSelector
protected abstract java.util.List<PsiElement> getNonFilteredExpressions(PsiElement context, Document document, int offset)
protected Condition<PsiElement> getFilters(int offset)
protected Condition<PsiElement> getPsiErrorFilter()