public abstract static class RequestResultProcessor.BulkResultProcessor extends RequestResultProcessor
RequestResultProcessor
that processes all text occurrences at once, e.g. for performance purposes.RequestResultProcessor.BulkResultProcessor
Constructor and Description |
---|
BulkResultProcessor() |
BulkResultProcessor(java.lang.Object... equality) |
Modifier and Type | Method and Description |
---|---|
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.
|
abstract boolean |
processTextOccurrences(PsiElement scope,
int[] offsetsInScope,
Processor<? super PsiReference> consumer)
Invoked for every element of the search scope (e.g.
|
equals, hashCode
public BulkResultProcessor()
public BulkResultProcessor(java.lang.Object... equality)
public boolean processTextOccurrence(PsiElement element, int offsetInElement, Processor<? super PsiReference> consumer)
RequestResultProcessor
consumer
.
If you wish to process all offsets in the scope (e.g. file) at once, extend RequestResultProcessor.BulkResultProcessor
.processTextOccurrence
in class RequestResultProcessor
public abstract boolean processTextOccurrences(PsiElement scope, int[] offsetsInScope, Processor<? super PsiReference> consumer)
scope
start offset. The implementation is supposed to search for references
inside the given element at the given offsets, and feed them to consumer
.