public class CastingLookupElementDecorator extends LookupElementDecorator<LookupElement> implements TypedLookupItem
Modifier and Type | Field and Description |
---|---|
static ClassConditionKey<CastingLookupElementDecorator> |
CLASS_CONDITION_KEY |
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
static LookupElement |
createCastingElement(LookupElement delegate,
PsiType castTo) |
LookupElement |
getCastItem() |
PsiType |
getType() |
void |
handleInsert(InsertionContext context) |
void |
renderElement(LookupElementPresentation presentation) |
java.lang.String |
toString() |
as, as, equals, getAllLookupStrings, getAutoCompletionPolicy, getDelegate, getLookupString, getObject, getPsiElement, hashCode, isCaseSensitive, isValid, isWorthShowingInAutoPopup, withInsertHandler, withRenderer
requiresCommittedDocuments
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static final ClassConditionKey<CastingLookupElementDecorator> CLASS_CONDITION_KEY
public PsiType getType()
getType
in interface TypedLookupItem
public java.lang.String toString()
toString
in class LookupElementDecorator<LookupElement>
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupElementDecorator<LookupElement>
public void handleInsert(InsertionContext context)
handleInsert
in class LookupElementDecorator<LookupElement>
public LookupElement getCastItem()
public static LookupElement createCastingElement(LookupElement delegate, PsiType castTo)