public class PsiElementResolveResult extends java.lang.Object implements ResolveResult
ResolveResult
.EMPTY_ARRAY
Constructor and Description |
---|
PsiElementResolveResult(PsiElement element)
Creates a resolve result with the specified resolve target.
|
PsiElementResolveResult(PsiElement element,
boolean validResult) |
Modifier and Type | Method and Description |
---|---|
static ResolveResult [] |
createResults(java.util.Collection<? extends PsiElement> elements) |
static ResolveResult [] |
createResults(PsiElement... elements) |
boolean |
equals(java.lang.Object o) |
PsiElement |
getElement()
Returns the result of the resolve.
|
int |
hashCode() |
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 PsiElementResolveResult(PsiElement element)
element
- the resolve target element.public PsiElementResolveResult(PsiElement element, boolean validResult)
public PsiElement getElement()
ResolveResult
getElement
in interface ResolveResult
public boolean isValidResult()
ResolveResult
isValidResult
in interface ResolveResult
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
public static ResolveResult [] createResults(java.util.Collection<? extends PsiElement> elements)
public static ResolveResult [] createResults(PsiElement... elements)