com.intellij.psi.infos
Class MethodCandidateInfo

java.lang.Object
  extended by com.intellij.psi.infos.CandidateInfo
      extended by com.intellij.psi.infos.MethodCandidateInfo
All Implemented Interfaces:
JavaResolveResult, ResolveResult

public class MethodCandidateInfo
extends CandidateInfo


Field Summary
 
Fields inherited from class com.intellij.psi.infos.CandidateInfo
EMPTY_ARRAY, mySubstitutor, RESOLVE_RESULT_FOR_PACKAGE_PREFIX_PACKAGE
 
Fields inherited from interface com.intellij.psi.JavaResolveResult
EMPTY
 
Constructor Summary
MethodCandidateInfo(PsiElement element, PsiSubstitutor substitutor)
           
MethodCandidateInfo(PsiElement candidate, PsiSubstitutor substitutor, PsiElement place, PsiClass psiClass, boolean staticsProblem, PsiExpressionList argumentList, PsiElement currFileContext, PsiType[] typeArguments)
           
 
Method Summary
 PsiMethod getElement()
          Returns the result of the resolve.
 PsiSubstitutor getSubstitutor()
          Substitutor providing values of type parameters occuring in ResolveResult.getElement().
 PsiSubstitutor inferTypeArguments(boolean forCompletion)
           
 boolean isApplicable()
           
 boolean isTypeArgumentsApplicable()
           
 boolean isValidResult()
          Checks if the reference was resolved to a valid element.
 
Methods inherited from class com.intellij.psi.infos.CandidateInfo
createCandidateInfoForPackagePrefixPart, getCurrentFileResolveScope, isAccessible, isPackagePrefixPackageReference, isStaticsScopeCorrect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)