public class JavaMethodCallElement extends LookupItem<PsiMethod> implements TypedLookupItem, StaticallyImportable
Modifier and Type | Field and Description |
---|---|
static Key<PsiMethod> |
ARGUMENT_TEMPLATE_ACTIVE |
static ClassConditionKey<JavaMethodCallElement> |
CLASS_CONDITION_KEY |
static Key<java.lang.Boolean> |
COMPLETION_HINTS |
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 |
---|
JavaMethodCallElement(PsiMethod method) |
JavaMethodCallElement(PsiMethod method,
boolean shouldImportStatic,
boolean mergedOverloads) |
JavaMethodCallElement(PsiMethod method,
java.lang.String methodName) |
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, isWorthShowingInAutoPopup, requiresCommittedDocuments
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static final ClassConditionKey<JavaMethodCallElement> CLASS_CONDITION_KEY
public static final Key<java.lang.Boolean> COMPLETION_HINTS
public JavaMethodCallElement(PsiMethod method)
public JavaMethodCallElement(PsiMethod method, java.lang.String methodName)
public JavaMethodCallElement(PsiMethod method, boolean shouldImportStatic, boolean mergedOverloads)
public PsiType getType()
getType
in interface TypedLookupItem
public void setInferenceSubstitutorFromExpectedType(PsiElement place, PsiType expectedType)
public JavaMethodCallElement setQualifierSubstitutor(PsiSubstitutor qualifierSubstitutor)
public PsiSubstitutor getSubstitutor()
public PsiSubstitutor getInferenceSubstitutor()
public void setShouldBeImported(boolean shouldImportStatic)
setShouldBeImported
in interface StaticallyImportable
public boolean canBeImported()
canBeImported
in interface StaticallyImportable
public boolean willBeImported()
willBeImported
in interface StaticallyImportable
public boolean equals(java.lang.Object o)
equals
in class LookupItem<PsiMethod>
public int hashCode()
hashCode
in class LookupItem<PsiMethod>
public void handleInsert(InsertionContext context)
handleInsert
in class LookupItem<PsiMethod>
public static boolean startArgumentLiveTemplate(InsertionContext context, PsiMethod method)
public static void showParameterHints(LookupElement element, InsertionContext context, PsiMethod method, PsiCallExpression methodCall)
public static int getCompletionHintsLimit()
public static void setCompletionModeIfNotSet(PsiCall expression, Disposable disposable)
public static void setCompletionMode(PsiCall expression, boolean value)
public static boolean isCompletionMode(PsiCall expression)
public static java.lang.String getTypeParamsText(boolean presentable, PsiTypeParameterListOwner owner, PsiSubstitutor substitutor)
public boolean isValid()
isValid
in class LookupElement
public void renderElement(LookupElementPresentation presentation)
renderElement
in class LookupItem<PsiMethod>