public abstract class PsiReferenceService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PsiReferenceService.Hints |
| Constructor and Description |
|---|
PsiReferenceService() |
| Modifier and Type | Method and Description |
|---|---|
PsiReference [] |
getContributedReferences(PsiElement element) |
abstract java.util.List<PsiReference> |
getReferences(PsiElement element,
PsiReferenceService.Hints hints)
By default, return the same as
PsiElement.getReferences(). |
static PsiReferenceService |
getService() |
public static PsiReferenceService getService()
public abstract java.util.List<PsiReference> getReferences(PsiElement element, PsiReferenceService.Hints hints)
PsiElement.getReferences().
For elements implementing ContributedReferenceHost also run
the reference providers registered in PsiReferenceContributor
extensions.element - PSI element to which the references will be boundhints - optional hints which are passed to PsiReferenceProvider.acceptsHints(PsiElement, com.intellij.psi.PsiReferenceService.Hints) and
PsiReferenceProvider.acceptsTarget(PsiElement) before the ElementPattern is matched, for performing
fail-fast checks in case the pattern takes long to match.public PsiReference [] getContributedReferences(PsiElement element)