public class CandidateInfo extends java.lang.Object implements JavaResolveResult
Modifier and Type | Field and Description |
---|---|
static CandidateInfo[] |
EMPTY_ARRAY |
protected PsiSubstitutor |
mySubstitutor |
static JavaResolveResult[] |
RESOLVE_RESULT_FOR_PACKAGE_PREFIX_PACKAGE |
EMPTY
Constructor and Description |
---|
CandidateInfo(CandidateInfo ci,
PsiSubstitutor newSubstitutor) |
CandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor) |
CandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor,
boolean accessProblem,
boolean staticsProblem) |
CandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor,
boolean accessProblem,
boolean staticsProblem,
PsiElement currFileContext) |
CandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor,
PsiElement place,
boolean staticsProblem) |
CandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor,
PsiElement place,
PsiClass accessClass,
boolean staticsProblem,
PsiElement currFileContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
PsiElement |
getCurrentFileResolveScope() |
PsiElement |
getElement()
Returns the result of the resolve.
|
PsiSubstitutor |
getSubstitutor()
Substitutor providing values of type parameters occurring in
ResolveResult.getElement() . |
int |
hashCode() |
boolean |
isAccessible() |
boolean |
isPackagePrefixPackageReference() |
boolean |
isStaticsScopeCorrect() |
boolean |
isValidResult()
Checks if the reference was resolved to a valid element.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTarget
fromSymbol
public static final CandidateInfo[] EMPTY_ARRAY
public static final JavaResolveResult[] RESOLVE_RESULT_FOR_PACKAGE_PREFIX_PACKAGE
protected final PsiSubstitutor mySubstitutor
public CandidateInfo(PsiElement candidate, PsiSubstitutor substitutor, boolean accessProblem, boolean staticsProblem, PsiElement currFileContext)
public CandidateInfo(PsiElement candidate, PsiSubstitutor substitutor, boolean accessProblem, boolean staticsProblem)
public CandidateInfo(PsiElement candidate, PsiSubstitutor substitutor, PsiElement place, PsiClass accessClass, boolean staticsProblem, PsiElement currFileContext)
public CandidateInfo(PsiElement candidate, PsiSubstitutor substitutor, PsiElement place, boolean staticsProblem)
public CandidateInfo(PsiElement candidate, PsiSubstitutor substitutor)
public CandidateInfo(CandidateInfo ci, PsiSubstitutor newSubstitutor)
public boolean isValidResult()
ResolveResult
isValidResult
in interface ResolveResult
public boolean isPackagePrefixPackageReference()
isPackagePrefixPackageReference
in interface JavaResolveResult
public PsiElement getElement()
ResolveResult
getElement
in interface ResolveResult
public PsiSubstitutor getSubstitutor()
JavaResolveResult
ResolveResult.getElement()
.getSubstitutor
in interface JavaResolveResult
public boolean isAccessible()
isAccessible
in interface JavaResolveResult
ResolveResult.getElement()
is accessible from reference.public boolean isStaticsScopeCorrect()
isStaticsScopeCorrect
in interface JavaResolveResult
public PsiElement getCurrentFileResolveScope()
getCurrentFileResolveScope
in interface JavaResolveResult
null
for qualified and local references.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object