public class PsiTypeLookupItem extends LookupItem implements TypedLookupItem
Modifier and Type | Field and Description |
---|---|
static ClassConditionKey<PsiTypeLookupItem> |
CLASS_CONDITION_KEY |
CASE_INSENSITIVE, EMPTY_ARRAY, FORCE_QUALIFY, HIGHLIGHTED_ATTR, ICON_ATTR, TAIL_TEXT_ATTR, TAIL_TEXT_SMALL_ATTR, TAIL_TYPE_ATTR, TYPE_TEXT_ATTR
addLookupStrings, compareTo, forceQualify, fromString, getAllLookupStrings, getAttribute, getAttribute, getAutoCompletionPolicy, getDefaultTailType, getInsertHandler, getLookupString, getObject, getPresentableText, getPriority, getTailType, handleCompletionChar, 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 static final ClassConditionKey<PsiTypeLookupItem> CLASS_CONDITION_KEY
public PsiType getType()
getType
in interface TypedLookupItem
public java.lang.String getForcedPresentableName()
public void setIndicateAnonymous(boolean indicateAnonymous)
public boolean isIndicateAnonymous()
public boolean equals(java.lang.Object o)
equals
in class LookupItem
public boolean isAddArrayInitializer()
public void setAddArrayInitializer()
public void handleInsert(InsertionContext context)
handleInsert
in class LookupItem
public java.lang.String calcGenerics(PsiElement context, InsertionContext insertionContext)
public int hashCode()
hashCode
in class LookupItem
public int getBracketsCount()
public static PsiTypeLookupItem createLookupItem(PsiType type, PsiElement context)
public static PsiTypeLookupItem createLookupItem(PsiType type, PsiElement context, boolean isDiamond)
public static PsiTypeLookupItem createLookupItem(PsiType type, PsiElement context, boolean isDiamond, InsertHandler<PsiTypeLookupItem> importFixer)
public static boolean isDiamond(PsiType type)
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupItem
public PsiTypeLookupItem setShowPackage()
public static void addImportForItem(InsertionContext context, PsiClass aClass)