public class MethodTextOccurrenceProcessor extends RequestResultProcessor
RequestResultProcessor.BulkResultProcessor| Modifier and Type | Field and Description |
|---|---|
protected PsiClass |
myContainingClass |
protected boolean |
myStrictSignatureSearch |
| Constructor and Description |
|---|
MethodTextOccurrenceProcessor(PsiClass aClass,
boolean strictSignatureSearch,
PsiMethod... methods) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
processInexactReference(PsiReference ref,
PsiElement refElement,
PsiMethod method,
Processor<? super PsiReference> consumer) |
boolean |
processTextOccurrence(PsiElement element,
int offsetInElement,
Processor<? super PsiReference> consumer)
For every occurrence of the search string in the search scope, the infrastructure invokes this method for every PSI element having that
occurrence inside, from leaf elements up the tree until file element.
|
equals, hashCodeprotected final PsiClass myContainingClass
protected final boolean myStrictSignatureSearch
public final boolean processTextOccurrence(PsiElement element, int offsetInElement, Processor<? super PsiReference> consumer)
RequestResultProcessorconsumer.
If you wish to process all offsets in the scope (e.g. file) at once, extend RequestResultProcessor.BulkResultProcessor.processTextOccurrence in class RequestResultProcessorprotected boolean processInexactReference(PsiReference ref, PsiElement refElement, PsiMethod method, Processor<? super PsiReference> consumer)