public final class SingleTargetRequestResultProcessor extends RequestResultProcessor
RequestResultProcessor.BulkResultProcessor
Constructor and Description |
---|
SingleTargetRequestResultProcessor(PsiElement target) |
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.
|
java.lang.String |
toString() |
equals, hashCode
public SingleTargetRequestResultProcessor(PsiElement target)
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 java.lang.String toString()
toString
in class java.lang.Object