public class MyLookupExpression extends Expression
Modifier and Type | Field and Description |
---|---|
protected LookupElement[] |
myLookupItems |
protected java.lang.String |
myName |
Constructor and Description |
---|
MyLookupExpression(java.lang.String name,
java.util.LinkedHashSet<java.lang.String> names,
PsiNamedElement elementToRename,
PsiElement nameSuggestionContext,
boolean shouldSelectAll,
java.lang.String advertisement) |
Modifier and Type | Method and Description |
---|---|
LookupElement[] |
calculateLookupItems(ExpressionContext context) |
Result |
calculateQuickResult(ExpressionContext context) |
Result |
calculateResult(ExpressionContext context) |
java.lang.String |
getAdvertisingText() |
LookupFocusDegree |
getLookupFocusDegree() |
boolean |
requiresCommittedPSI() |
void |
setLookupFocusDegree(LookupFocusDegree lookupFocusDegree) |
protected final java.lang.String myName
protected final LookupElement[] myLookupItems
public MyLookupExpression(java.lang.String name, java.util.LinkedHashSet<java.lang.String> names, PsiNamedElement elementToRename, PsiElement nameSuggestionContext, boolean shouldSelectAll, java.lang.String advertisement)
public LookupElement[] calculateLookupItems(ExpressionContext context)
calculateLookupItems
in class Expression
public Result calculateQuickResult(ExpressionContext context)
calculateQuickResult
in class Expression
public Result calculateResult(ExpressionContext context)
calculateResult
in class Expression
public boolean requiresCommittedPSI()
requiresCommittedPSI
in class Expression
Expression.calculateResult(com.intellij.codeInsight.template.ExpressionContext)
or
Expression.calculateQuickResult(com.intellij.codeInsight.template.ExpressionContext)
require committed PSI for their calculation or false otherwisepublic java.lang.String getAdvertisingText()
getAdvertisingText
in class Expression
public LookupFocusDegree getLookupFocusDegree()
getLookupFocusDegree
in class Expression
LookupFocusDegree
public void setLookupFocusDegree(LookupFocusDegree lookupFocusDegree)