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_ATTRCLASS_CONDITION_KEYCLASS_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, toStringas, as, getPsiElement, isValid, isWorthShowingInAutoPopup, requiresCommittedDocumentschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMappublic VariableLookupItem(PsiVariable var)
public VariableLookupItem(PsiField field, boolean shouldImport)
public PsiType getType()
getType in interface TypedLookupItempublic PsiSubstitutor getSubstitutor()
public VariableLookupItem setSubstitutor(PsiSubstitutor substitutor)
public void setShouldBeImported(boolean shouldImportStatic)
setShouldBeImported in interface StaticallyImportablepublic boolean canBeImported()
canBeImported in interface StaticallyImportablepublic boolean willBeImported()
willBeImported in interface StaticallyImportablepublic 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)