public abstract class LookupElementDecorator<T extends LookupElement> extends LookupElement
PrioritizedLookupElementEMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
LookupElementDecorator(T delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
as(java.lang.Class<T> clazz)
Return the first element of the given class in a
LookupElementDecorator wrapper chain. |
<T> T |
as(ClassConditionKey<T> conditionKey)
Prefer to use
LookupElement.as(Class) |
boolean |
equals(java.lang.Object o) |
java.util.Set<java.lang.String> |
getAllLookupStrings() |
AutoCompletionPolicy |
getAutoCompletionPolicy() |
T |
getDelegate() |
java.lang.String |
getLookupString() |
java.lang.Object |
getObject() |
PsiElement |
getPsiElement() |
void |
handleInsert(InsertionContext context) |
int |
hashCode() |
boolean |
isCaseSensitive() |
boolean |
isValid() |
boolean |
isWorthShowingInAutoPopup()
Invoked when the completion autopopup contains only the items that exactly match the user-entered prefix to determine
whether the popup should be closed to not get in the way when navigating through the code.
|
void |
renderElement(LookupElementPresentation presentation) |
java.lang.String |
toString() |
static <T extends LookupElement> |
withInsertHandler(T element,
InsertHandler<? super LookupElementDecorator<T>> insertHandler) |
static <T extends LookupElement> |
withRenderer(T element,
LookupElementRenderer<? super LookupElementDecorator<T>> visagiste) |
requiresCommittedDocumentschangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapprotected LookupElementDecorator(T delegate)
public T getDelegate()
public boolean isValid()
isValid in class LookupElementpublic java.lang.String getLookupString()
getLookupString in class LookupElementpublic java.util.Set<java.lang.String> getAllLookupStrings()
getAllLookupStrings in class LookupElementpublic java.lang.Object getObject()
getObject in class LookupElementpublic void handleInsert(InsertionContext context)
handleInsert in class LookupElementpublic AutoCompletionPolicy getAutoCompletionPolicy()
getAutoCompletionPolicy in class LookupElementpublic java.lang.String toString()
toString in class LookupElementpublic void renderElement(LookupElementPresentation presentation)
renderElement in class LookupElementpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static <T extends LookupElement> LookupElementDecorator<T> withInsertHandler(T element, InsertHandler<? super LookupElementDecorator<T>> insertHandler)
public static <T extends LookupElement> LookupElementDecorator<T> withRenderer(T element, LookupElementRenderer<? super LookupElementDecorator<T>> visagiste)
public <T> T as(ClassConditionKey<T> conditionKey)
LookupElementLookupElement.as(Class)as in class LookupElementpublic <T> T as(java.lang.Class<T> clazz)
LookupElementLookupElementDecorator wrapper chain.
If this object is not a decorator, return it if it's instance of the given class, otherwise null.as in class LookupElementpublic boolean isCaseSensitive()
isCaseSensitive in class LookupElementpublic boolean isWorthShowingInAutoPopup()
LookupElementisWorthShowingInAutoPopup in class LookupElementpublic PsiElement getPsiElement()
getPsiElement in class LookupElementLookupElement.getObject() result.