E
- the parent type of all elements produced by an API analyzerpublic class BaseTreeFilter<E extends Element<E>> extends Object implements TreeFilter<E>
Constructor and Description |
---|
BaseTreeFilter() |
Modifier and Type | Method and Description |
---|---|
Map<E,FilterFinishResult> |
finish()
Called after all elements have been processed to see if any of them have changed in their filtering
result (which could be the case if there are dependencies between elements other than that of parent-child).
|
FilterFinishResult |
finish(E element)
This method is called after the filtering has
started and all children have
been processed by this filter. |
FilterStartResult |
start(E element)
This method is called when an element is about to be filtered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchAndDescend, union, union
public FilterStartResult start(E element)
TreeFilter
TreeFilter.finish(Element)
will
be called with the same element as this method.start
in interface TreeFilter<E extends Element<E>>
element
- the element to start filteringpublic FilterFinishResult finish(E element)
TreeFilter
started
and all children have
been processed by this filter.
Note that the result can still be FilterMatch.UNDECIDED
. It is expected that such elements
will in the end be resolved with the TreeFilter.finish()
method.
finish
in interface TreeFilter<E extends Element<E>>
element
- the element for which the filtering has finishedpublic Map<E,FilterFinishResult> finish()
TreeFilter
Note that the result can remain FilterMatch.UNDECIDED
. It is upon the caller to then decide what to do
with such elements.
finish
in interface TreeFilter<E extends Element<E>>
Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.