public abstract class IndependentTreeFilter<E extends Element<E>> extends BaseTreeFilter<E>
TreeFilter
interface that simply repeats the result provided from
the start(Element)
method in its finish(Element)
method.
This is what filters that do not depend on any other element usually need.
Constructor and Description |
---|
IndependentTreeFilter() |
Modifier and Type | Method and Description |
---|---|
protected abstract FilterStartResult |
doStart(E element) |
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.
|
finish
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchAndDescend, union, union
public final 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>>
start
in class BaseTreeFilter<E extends Element<E>>
element
- the element to start filteringprotected abstract FilterStartResult doStart(E element)
public 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>>
finish
in class BaseTreeFilter<E extends Element<E>>
element
- the element for which the filtering has finishedCopyright © 2014-2021 Lukas Krejci. All Rights Reserved.