public class PsiReferenceServiceImpl extends PsiReferenceService
PsiReferenceService.Hints
Constructor and Description |
---|
PsiReferenceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<PsiReference> |
getReferences(PsiElement element,
PsiReferenceService.Hints hints)
By default, return the same as
PsiElement.getReferences() . |
getContributedReferences, getService
public java.util.List<PsiReference> getReferences(PsiElement element, PsiReferenceService.Hints hints)
PsiReferenceService
PsiElement.getReferences()
.
For elements implementing ContributedReferenceHost
also run
the reference providers registered in PsiReferenceContributor
extensions.getReferences
in class PsiReferenceService
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.