com.intellij.psi
Interface ResolveResult

All Known Subinterfaces:
JavaResolveResult, PsiClassType.ClassResolveResult
All Known Implementing Classes:
CandidateInfo, ClassCandidateInfo, MethodCandidateInfo, PsiElementResolveResult

public interface ResolveResult

Represents the result of resolving a reference.


Field Summary
static ResolveResult[] EMPTY_ARRAY
          The empty array of PSI resolve results which can be reused to avoid unnecessary allocations.
 
Method Summary
 PsiElement getElement()
          Returns the result of the resolve.
 boolean isValidResult()
          Checks if the reference was resolved to a valid element.
 

Field Detail

EMPTY_ARRAY

static final ResolveResult[] EMPTY_ARRAY
The empty array of PSI resolve results which can be reused to avoid unnecessary allocations.

Method Detail

getElement

@Nullable
PsiElement getElement()
Returns the result of the resolve.

Returns:
an element the reference is resolved to.

isValidResult

boolean isValidResult()
Checks if the reference was resolved to a valid element.

Returns:
true if the resolve encountered no problems