public class CompositeFilter extends java.lang.Object implements Filter, FilterMixin, DumbAware
Filter.NextAction, Filter.Result, Filter.ResultItem
FilterMixin.AdditionalHighlight
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
CompositeFilter(DumbService dumbService) |
|
CompositeFilter(Project project) |
|
CompositeFilter(Project project,
java.util.List<? extends Filter> filters) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter) |
Filter.Result |
applyFilter(java.lang.String line,
int entireLength)
Filters line by creating an instance of
Filter.Result . |
void |
applyHeavyFilter(Document copiedFragment,
int startOffset,
int startLineNumber,
Consumer<? super FilterMixin.AdditionalHighlight> consumer) |
java.util.List<Filter> |
getFilters() |
java.lang.String |
getUpdateMessage() |
protected static boolean |
intersects(java.util.List<? extends Filter.ResultItem> items,
Filter.ResultItem newItem) |
boolean |
isAnyHeavy() |
boolean |
isEmpty() |
void |
setForceUseAllFilters(boolean forceUseAllFilters) |
boolean |
shouldRunHeavy() |
java.lang.String |
toString() |
public CompositeFilter(Project project)
protected CompositeFilter(DumbService dumbService)
public Filter.Result applyFilter(java.lang.String line, int entireLength)
Filter
Filter.Result
.applyFilter
in interface Filter
line
- The line to be filtered. Note that the line must contain a line
separator at the end.entireLength
- The length of the entire text including the line passed for filtration.null
if there was no match. Otherwise, an instance of Filter.Result
protected static boolean intersects(java.util.List<? extends Filter.ResultItem> items, Filter.ResultItem newItem)
public boolean shouldRunHeavy()
shouldRunHeavy
in interface FilterMixin
public void applyHeavyFilter(Document copiedFragment, int startOffset, int startLineNumber, Consumer<? super FilterMixin.AdditionalHighlight> consumer)
applyHeavyFilter
in interface FilterMixin
public java.lang.String getUpdateMessage()
getUpdateMessage
in interface FilterMixin
public boolean isEmpty()
public boolean isAnyHeavy()
public void addFilter(Filter filter)
public java.util.List<Filter> getFilters()
public void setForceUseAllFilters(boolean forceUseAllFilters)
public java.lang.String toString()
toString
in class java.lang.Object