public class JavaCompletionUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<PairFunction<PsiExpression,CompletionParameters,PsiType>> |
DYNAMIC_TYPE_EVALUATOR |
static Key<java.lang.Boolean> |
FORCE_SHOW_SIGNATURE_ATTR |
static Key<java.lang.Boolean> |
SUPER_METHOD_PARAMETERS |
Constructor and Description |
---|
JavaCompletionUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
completeVariableNameForRefactoring(JavaCodeStyleManager codeStyleManager,
PsiType varType,
VariableKind varKind,
SuggestedNameInfo suggestedNameInfo) |
static void |
completeVariableNameForRefactoring(Project project,
java.util.Set<LookupElement> set,
java.lang.String prefix,
PsiType varType,
VariableKind varKind) |
static FakePsiElement |
createContextWithXxxVariable(PsiElement place,
PsiType varType) |
static java.lang.String |
escapeXmlIfNeeded(InsertionContext context,
java.lang.String generics) |
static int |
findQualifiedNameStart(InsertionContext context) |
static java.util.LinkedHashSet<java.lang.String> |
getAllLookupStrings(PsiMember member) |
static java.util.List<PsiMethod> |
getAllMethods(LookupElement item) |
static java.util.List<? extends PsiElement> |
getAllPsiElements(LookupElement item) |
static java.util.Set<PsiType> |
getExpectedTypes(CompletionParameters parameters) |
static PsiType |
getLookupElementType(LookupElement element) |
static PsiType |
getQualifiedMemberReferenceType(PsiType qualifierType,
PsiMember member) |
static PsiType |
getQualifierType(LookupElement item) |
static boolean |
hasAccessibleConstructor(PsiType type,
PsiElement place) |
static LookupElement |
highlightIfNeeded(PsiType qualifierType,
LookupElement item,
java.lang.Object object,
PsiElement place) |
static void |
insertClassReference(PsiClass psiClass,
PsiFile file,
int offset) |
static int |
insertClassReference(PsiClass psiClass,
PsiFile file,
int startOffset,
int endOffset) |
static void |
insertParentheses(InsertionContext context,
LookupElement item,
boolean overloadsMatter,
boolean hasParams) |
static void |
insertParentheses(InsertionContext context,
LookupElement item,
boolean overloadsMatter,
ThreeState hasParams,
boolean forceClosingParenthesis) |
static boolean |
insertTail(InsertionContext context,
LookupElement item,
TailType tailType,
boolean hasTail) |
static RangeMarker |
insertTemporary(int endOffset,
Document document,
java.lang.String temporary) |
static boolean |
inSomePackage(PsiElement context) |
static boolean |
isEffectivelyDeprecated(PsiDocCommentOwner member) |
static boolean |
isInExcludedPackage(PsiMember member,
boolean allowInstanceInnerClasses) |
static boolean |
isSourceLevelAccessible(PsiElement context,
PsiClass psiClass,
boolean pkgContext) |
static boolean |
mayHaveSideEffects(PsiElement element) |
static <T extends PsiType> |
originalize(T type) |
static java.util.Set<LookupElement> |
processJavaReference(PsiElement element,
PsiJavaReference javaReference,
ElementFilter elementFilter,
JavaCompletionProcessor.Options options,
PrefixMatcher matcher,
CompletionParameters parameters) |
static boolean |
promptTypeArgs(InsertionContext context,
int offset) |
static void |
putAllMethods(LookupElement item,
java.util.List<? extends PsiMethod> methods) |
static void |
shortenReference(PsiFile file,
int offset) |
public static final Key<java.lang.Boolean> FORCE_SHOW_SIGNATURE_ATTR
public static final Key<PairFunction<PsiExpression,CompletionParameters,PsiType>> DYNAMIC_TYPE_EVALUATOR
public static final Key<java.lang.Boolean> SUPER_METHOD_PARAMETERS
public static java.util.Set<PsiType> getExpectedTypes(CompletionParameters parameters)
public static PsiType getQualifierType(LookupElement item)
public static void completeVariableNameForRefactoring(Project project, java.util.Set<LookupElement> set, java.lang.String prefix, PsiType varType, VariableKind varKind)
public static void putAllMethods(LookupElement item, java.util.List<? extends PsiMethod> methods)
public static java.util.List<PsiMethod> getAllMethods(LookupElement item)
public static java.lang.String[] completeVariableNameForRefactoring(JavaCodeStyleManager codeStyleManager, PsiType varType, VariableKind varKind, SuggestedNameInfo suggestedNameInfo)
public static boolean isInExcludedPackage(PsiMember member, boolean allowInstanceInnerClasses)
public static <T extends PsiType> T originalize(T type)
public static java.util.List<? extends PsiElement> getAllPsiElements(LookupElement item)
public static PsiType getLookupElementType(LookupElement element)
public static PsiType getQualifiedMemberReferenceType(PsiType qualifierType, PsiMember member)
public static java.util.Set<LookupElement> processJavaReference(PsiElement element, PsiJavaReference javaReference, ElementFilter elementFilter, JavaCompletionProcessor.Options options, PrefixMatcher matcher, CompletionParameters parameters)
public static LookupElement highlightIfNeeded(PsiType qualifierType, LookupElement item, java.lang.Object object, PsiElement place)
public static boolean hasAccessibleConstructor(PsiType type, PsiElement place)
public static java.util.LinkedHashSet<java.lang.String> getAllLookupStrings(PsiMember member)
public static boolean mayHaveSideEffects(PsiElement element)
public static void insertClassReference(PsiClass psiClass, PsiFile file, int offset)
public static int insertClassReference(PsiClass psiClass, PsiFile file, int startOffset, int endOffset)
public static RangeMarker insertTemporary(int endOffset, Document document, java.lang.String temporary)
public static void insertParentheses(InsertionContext context, LookupElement item, boolean overloadsMatter, boolean hasParams)
public static void insertParentheses(InsertionContext context, LookupElement item, boolean overloadsMatter, ThreeState hasParams, boolean forceClosingParenthesis)
public static boolean insertTail(InsertionContext context, LookupElement item, TailType tailType, boolean hasTail)
public static void shortenReference(PsiFile file, int offset) throws IncorrectOperationException
IncorrectOperationException
public static boolean inSomePackage(PsiElement context)
public static boolean isSourceLevelAccessible(PsiElement context, PsiClass psiClass, boolean pkgContext)
public static boolean promptTypeArgs(InsertionContext context, int offset)
public static FakePsiElement createContextWithXxxVariable(PsiElement place, PsiType varType)
public static java.lang.String escapeXmlIfNeeded(InsertionContext context, java.lang.String generics)
public static boolean isEffectivelyDeprecated(PsiDocCommentOwner member)
public static int findQualifiedNameStart(InsertionContext context)