public class ReferencesSearch extends ExtensibleQueryFactory<PsiReference,ReferencesSearch.SearchParameters>
PsiReference
,
ReferenceSearcher
Modifier and Type | Class and Description |
---|---|
static class |
ReferencesSearch.SearchParameters |
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<QueryExecutor<PsiReference,ReferencesSearch.SearchParameters>> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
static Query<PsiReference> |
search(PsiElement element)
Searches for references to the specified element in the scope in which such references are expected to be found, according to
dependencies and access rules.
|
static Query<PsiReference> |
search(PsiElement element,
SearchScope searchScope)
Searches for references to the specified element in the specified scope.
|
static Query<PsiReference> |
search(PsiElement element,
SearchScope searchScope,
boolean ignoreAccessScope)
Searches for references to the specified element in the specified scope, optionally returning also references which
are invalid because of access rules (e.g.
|
static Query<PsiReference> |
search(ReferencesSearch.SearchParameters parameters)
Searches for references to the specified element according to the specified parameters.
|
static void |
searchOptimized(PsiElement element,
SearchScope searchScope,
boolean ignoreAccessScope,
SearchRequestCollector collector,
boolean inReadAction,
PairProcessor<? super PsiReference,? super SearchRequestCollector> processor) |
static void |
searchOptimized(PsiElement element,
SearchScope searchScope,
boolean ignoreAccessScope,
SearchRequestCollector collector,
Processor<? super PsiReference> processor) |
getExecutors, registerExecutor, registerExecutor, unregisterExecutor
createQuery, createUniqueResultsQuery, createUniqueResultsQuery, createUniqueResultsQuery, hasAnyExecutors
public static final ExtensionPointName<QueryExecutor<PsiReference,ReferencesSearch.SearchParameters>> EP_NAME
public static Query<PsiReference> search(PsiElement element)
element
- the element (declaration) the references to which are requested.public static Query<PsiReference> search(PsiElement element, SearchScope searchScope)
element
- the element (declaration) the references to which are requested.searchScope
- the scope in which the search is performed.public static Query<PsiReference> search(PsiElement element, SearchScope searchScope, boolean ignoreAccessScope)
element
- the element (declaration) the references to which are requested.searchScope
- the scope in which the search is performed.ignoreAccessScope
- if true, references which are invalid because of access rules are included in the results.public static Query<PsiReference> search(ReferencesSearch.SearchParameters parameters)
parameters
- the parameters for the search (contain also the element the references to which are requested).public static void searchOptimized(PsiElement element, SearchScope searchScope, boolean ignoreAccessScope, SearchRequestCollector collector, Processor<? super PsiReference> processor)
public static void searchOptimized(PsiElement element, SearchScope searchScope, boolean ignoreAccessScope, SearchRequestCollector collector, boolean inReadAction, PairProcessor<? super PsiReference,? super SearchRequestCollector> processor)