Uses of Interface
org.revapi.TreeFilter
-
Packages that use TreeFilter Package Description org.revapi org.revapi.base org.revapi.simple -
-
Uses of TreeFilter in org.revapi
Methods in org.revapi that return TreeFilter Modifier and Type Method Description <E extends Element<E>>
TreeFilter<E>ElementMatcher.CompiledRecipe. filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
The recipe needs to be transformed into aTreeFilter
to be used for filtering of the element forest.static <E extends Element<E>>
TreeFilter<E>TreeFilter. intersection(List<TreeFilter<E>> fs)
Returns a filter that matches if all of the provided filters match.static <E extends Element<E>>
TreeFilter<E>TreeFilter. intersection(TreeFilter<E>... fs)
static <E extends Element<E>>
TreeFilter<E>TreeFilter. matchAndDescend()
static <E extends Element<E>>
TreeFilter<E>TreeFilter. merge(BinaryOperator<FilterStartResult> mergeStarts, BinaryOperator<FilterFinishResult> mergeFinishes, FilterStartResult defaultStartResult, FilterFinishResult defaultFinishResult, List<TreeFilter<E>> fs)
Merges the filters together using the provided functions to combine the individual results.static <E extends Element<E>>
TreeFilter<E>TreeFilter. merge(BinaryOperator<FilterStartResult> mergeStarts, BinaryOperator<FilterFinishResult> mergeFinishes, FilterStartResult defaultStartResult, FilterFinishResult defaultFinishResult, TreeFilter<E>... fs)
static <E extends Element<E>>
TreeFilter<E>TreeFilter. union(List<TreeFilter<E>> fs)
static <E extends Element<E>>
TreeFilter<E>TreeFilter. union(TreeFilter<E>... fs)
Methods in org.revapi that return types with arguments of type TreeFilter Modifier and Type Method Description default <E extends Element<E>>
Optional<TreeFilter<E>>ElementFilter. filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
Deprecated.<E extends Element<E>>
Optional<TreeFilter<E>>TreeFilterProvider. filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
Creates a new filter specifically for use with the provided analyzer.Methods in org.revapi with parameters of type TreeFilter Modifier and Type Method Description ElementForest<E>
ArchiveAnalyzer. analyze(TreeFilter<E> filter)
Analyzes the API archives and filters the forest using the provided filter.static <E extends Element<E>>
TreeFilter<E>TreeFilter. intersection(TreeFilter<E>... fs)
static <E extends Element<E>>
TreeFilter<E>TreeFilter. merge(BinaryOperator<FilterStartResult> mergeStarts, BinaryOperator<FilterFinishResult> mergeFinishes, FilterStartResult defaultStartResult, FilterFinishResult defaultFinishResult, TreeFilter<E>... fs)
<T extends Element<E>>
Stream<T>ElementForest. stream(Class<T> resultType, boolean recurse, TreeFilter<E> filter, Element<E> root)
Walks through the forest and returns a stream of elements that match the provided filter.static <E extends Element<E>>
TreeFilter<E>TreeFilter. union(TreeFilter<E>... fs)
Method parameters in org.revapi with type arguments of type TreeFilter Modifier and Type Method Description static <E extends Element<E>>
TreeFilter<E>TreeFilter. intersection(List<TreeFilter<E>> fs)
Returns a filter that matches if all of the provided filters match.static <E extends Element<E>>
TreeFilter<E>TreeFilter. merge(BinaryOperator<FilterStartResult> mergeStarts, BinaryOperator<FilterFinishResult> mergeFinishes, FilterStartResult defaultStartResult, FilterFinishResult defaultFinishResult, List<TreeFilter<E>> fs)
Merges the filters together using the provided functions to combine the individual results.static <E extends Element<E>>
TreeFilter<E>TreeFilter. union(List<TreeFilter<E>> fs)
-
Uses of TreeFilter in org.revapi.base
Classes in org.revapi.base that implement TreeFilter Modifier and Type Class Description class
BaseTreeFilter<E extends Element<E>>
A convenience base class for tree filters.class
IncludeExcludeTreeFilter<E extends Element<E>>
A tree filter that uses a combination of an include and exclude filters to arrive at the filtering decisions.class
IndependentTreeFilter<E extends Element<E>>
A simple implementation of theTreeFilter
interface that simply repeats the result provided from theIndependentTreeFilter.start(Element)
method in itsIndependentTreeFilter.finish(Element)
method.class
OverridableIncludeExcludeTreeFilter<E extends Element<E>>
This is similar to theIncludeExcludeTreeFilter
but adds support for the "include inside exclude", e.g.Methods in org.revapi.base that return types with arguments of type TreeFilter Modifier and Type Method Description <E extends Element<E>>
Optional<TreeFilter<E>>BaseTreeFilterProvider. filterFor(ArchiveAnalyzer<E> archiveAnalyzer)
Methods in org.revapi.base with parameters of type TreeFilter Modifier and Type Method Description protected void
BaseArchiveAnalyzer. addTo(Object context, TreeFilter<E> filter, SortedSet<E> siblings, E element)
Adds an element to the set of its potential siblings.F
BaseArchiveAnalyzer. analyze(TreeFilter<E> filter)
protected <T extends Element<E>>
voidBaseElementForest. search(List<T> results, Class<T> resultType, SortedSet<E> siblings, boolean recurse, TreeFilter<E> filter)
<T extends Element<E>>
Stream<T>BaseElementForest. stream(Class<T> resultType, boolean recurse, TreeFilter<E> filter, Element<E> root)
Constructors in org.revapi.base with parameters of type TreeFilter Constructor Description IncludeExcludeTreeFilter(TreeFilter<E> include, TreeFilter<E> exclude)
A lack of any include or exclude filter needs to be expressed as a null value.OverridableIncludeExcludeTreeFilter(TreeFilter<E> include, TreeFilter<E> exclude)
-
Uses of TreeFilter in org.revapi.simple
Methods in org.revapi.simple with parameters of type TreeFilter Modifier and Type Method Description <T extends Element>
List<T>SimpleElementForest. search(Class<T> resultType, boolean recurse, TreeFilter filter, Element root)
Deprecated.<T extends Element>
voidSimpleElementForest. search(List<T> results, Class<T> resultType, SortedSet<? extends Element> currentLevel, boolean recurse, TreeFilter filter)
Deprecated.Stream
SimpleElementForest. stream(Class resultType, boolean recurse, TreeFilter filter, Element root)
Deprecated.
-