public class JavaPsiClassReferenceElement extends LookupItem<java.lang.Object> implements TypedLookupItem
Modifier and Type | Field and Description |
---|---|
static ClassConditionKey<JavaPsiClassReferenceElement> |
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
Constructor and Description |
---|
JavaPsiClassReferenceElement(PsiClass psiClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Set<java.lang.String> |
getAllLookupStrings() |
java.lang.String |
getForcedPresentableName() |
java.lang.String |
getLocationString() |
java.lang.String |
getLookupString()
Returns a string which will be inserted to the editor when this item is
choosen.
|
PsiClass |
getObject()
Returns a data object.
|
java.lang.String |
getQualifiedName() |
PsiSubstitutor |
getSubstitutor() |
PsiType |
getType() |
int |
hashCode() |
boolean |
isValid() |
static void |
renderClassItem(LookupElementPresentation presentation,
LookupElement item,
PsiClass psiClass,
boolean diamond,
java.lang.String locationString,
PsiSubstitutor substitutor) |
void |
renderElement(LookupElementPresentation presentation) |
void |
setForcedPresentableName(java.lang.String forcedPresentableName) |
JavaPsiClassReferenceElement |
setSubstitutor(PsiSubstitutor substitutor) |
addLookupStrings, compareTo, forceQualify, fromString, getAttribute, getAttribute, getAutoCompletionPolicy, getDefaultTailType, getInsertHandler, getPresentableText, getPriority, getTailType, handleCompletionChar, handleInsert, isBold, isCaseSensitive, setAttribute, setAttribute, setAutoCompletionPolicy, setBold, setIcon, setInsertHandler, setLookupString, setObject, setPresentableText, setPriority, setTailText, setTailType, toString
as, as, getPsiElement, isWorthShowingInAutoPopup, requiresCommittedDocuments
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static final ClassConditionKey<JavaPsiClassReferenceElement> CLASS_CONDITION_KEY
public JavaPsiClassReferenceElement(PsiClass psiClass)
public java.lang.String getForcedPresentableName()
public PsiType getType()
getType
in interface TypedLookupItem
public PsiSubstitutor getSubstitutor()
public JavaPsiClassReferenceElement setSubstitutor(PsiSubstitutor substitutor)
public java.lang.String getLookupString()
LookupItem
getLookupString
in class LookupItem<java.lang.Object>
public java.util.Set<java.lang.String> getAllLookupStrings()
getAllLookupStrings
in class LookupItem<java.lang.Object>
public void setForcedPresentableName(java.lang.String forcedPresentableName)
public PsiClass getObject()
LookupItem
getObject
in class LookupItem<java.lang.Object>
public boolean isValid()
isValid
in class LookupElement
public boolean equals(java.lang.Object o)
equals
in class LookupItem<java.lang.Object>
public java.lang.String getQualifiedName()
public int hashCode()
hashCode
in class LookupItem<java.lang.Object>
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupItem<java.lang.Object>
public static void renderClassItem(LookupElementPresentation presentation, LookupElement item, PsiClass psiClass, boolean diamond, java.lang.String locationString, PsiSubstitutor substitutor)
public java.lang.String getLocationString()