com.intellij.psi.infos
Class MethodCandidateInfo
java.lang.Object
com.intellij.psi.infos.CandidateInfo
com.intellij.psi.infos.MethodCandidateInfo
- All Implemented Interfaces:
- JavaResolveResult, ResolveResult
public class MethodCandidateInfo
- extends CandidateInfo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodCandidateInfo
public MethodCandidateInfo(PsiElement candidate,
PsiSubstitutor substitutor,
PsiElement place,
PsiClass psiClass,
boolean staticsProblem,
PsiExpressionList argumentList,
PsiElement currFileContext,
PsiType[] typeArguments)
MethodCandidateInfo
public MethodCandidateInfo(PsiElement element,
PsiSubstitutor substitutor)
isApplicable
public boolean isApplicable()
getSubstitutor
public PsiSubstitutor getSubstitutor()
- Description copied from interface:
JavaResolveResult
- Substitutor providing values of type parameters occuring
in
ResolveResult.getElement().
- Specified by:
getSubstitutor in interface JavaResolveResult- Overrides:
getSubstitutor in class CandidateInfo
- Returns:
isTypeArgumentsApplicable
public boolean isTypeArgumentsApplicable()
isValidResult
public boolean isValidResult()
- Description copied from interface:
ResolveResult
- Checks if the reference was resolved to a valid element.
- Specified by:
isValidResult in interface ResolveResult- Overrides:
isValidResult in class CandidateInfo
- Returns:
- true if the resolve encountered no problems
getElement
public PsiMethod getElement()
- Description copied from interface:
ResolveResult
- Returns the result of the resolve.
- Specified by:
getElement in interface ResolveResult- Overrides:
getElement in class CandidateInfo
- Returns:
- an element the reference is resolved to.
inferTypeArguments
public PsiSubstitutor inferTypeArguments(boolean forCompletion)