public class VariableLookupItem extends LookupItem<PsiVariable> implements TypedLookupItem, StaticallyImportable
CASE_INSENSITIVE, CLASS_CONDITION_KEY, EMPTY_ARRAY, FORCE_QUALIFY, HIGHLIGHTED_ATTR, ICON_ATTR, TAIL_TEXT_ATTR, TAIL_TEXT_SMALL_ATTR, TAIL_TYPE_ATTR, TYPE_TEXT_ATTR
CLASS_CONDITION_KEY
CLASS_CONDITION_KEY
Constructor and Description |
---|
VariableLookupItem(PsiField field,
boolean shouldImport) |
VariableLookupItem(PsiVariable var) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeImported() |
PsiSubstitutor |
getSubstitutor() |
PsiType |
getType() |
void |
handleInsert(InsertionContext context) |
static void |
makeFinalIfNeeded(InsertionContext context,
PsiVariable variable) |
void |
renderElement(LookupElementPresentation presentation) |
void |
setShouldBeImported(boolean shouldImportStatic) |
VariableLookupItem |
setSubstitutor(PsiSubstitutor substitutor) |
boolean |
willBeImported() |
addLookupStrings, compareTo, equals, forceQualify, fromString, getAllLookupStrings, getAttribute, getAttribute, getAutoCompletionPolicy, getDefaultTailType, getInsertHandler, getLookupString, getObject, getPresentableText, getPriority, getTailType, handleCompletionChar, hashCode, isBold, isCaseSensitive, setAttribute, setAttribute, setAutoCompletionPolicy, setBold, setIcon, setInsertHandler, setLookupString, setObject, setPresentableText, setPriority, setTailText, setTailType, toString
as, as, getPsiElement, isValid, isWorthShowingInAutoPopup, requiresCommittedDocuments
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public VariableLookupItem(PsiVariable var)
public VariableLookupItem(PsiField field, boolean shouldImport)
public PsiType getType()
getType
in interface TypedLookupItem
public PsiSubstitutor getSubstitutor()
public VariableLookupItem setSubstitutor(PsiSubstitutor substitutor)
public void setShouldBeImported(boolean shouldImportStatic)
setShouldBeImported
in interface StaticallyImportable
public boolean canBeImported()
canBeImported
in interface StaticallyImportable
public boolean willBeImported()
willBeImported
in interface StaticallyImportable
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupItem<PsiVariable>
public void handleInsert(InsertionContext context)
handleInsert
in class LookupItem<PsiVariable>
public static void makeFinalIfNeeded(InsertionContext context, PsiVariable variable)