An API for 
QueryPart.$traverse(Traverser) query part traversals.
 This API is EXPERIMENTAL. Use at your own risk.
 Similar to a Collector for Stream.collect(Collector), this
 type wraps:
 
- 
Method SummaryModifier and TypeMethodDescriptionabort()An optional traversal abort condition to short circuit traversal e.g.after()A callback that is invoked after recursing into a subtree.before()A callback that is invoked before recursing into a subtree.finisher()An optional transformation function to turn the temporary data structure supplied bysupplier()into the final data structure.static <A,R> Traverser<A, R> of(Supplier<A> supplier, Predicate<? super A> abort, Predicate<? super QueryPart> recurse, BiFunction<? super A, ? super QueryPart, ? extends A> before, BiFunction<? super A, ? super QueryPart, ? extends A> after, Function<? super A, ? extends R> finisher) Convenience method to create aTraverserwith asupplier(),abort(),recurse(),before(),after(), andfinisher().static <R> Traverser<R,R> of(Supplier<R> supplier, BiFunction<? super R, ? super QueryPart, ? extends R> before) static <R> Traverser<R,R> of(Supplier<R> supplier, BiFunction<? super R, ? super QueryPart, ? extends R> before, BiFunction<? super R, ? super QueryPart, ? extends R> after) static <R> Traverser<R,R> of(Supplier<R> supplier, Predicate<? super R> abort, Predicate<? super QueryPart> recurse, BiFunction<? super R, ? super QueryPart, ? extends R> before) static <R> Traverser<R,R> of(Supplier<R> supplier, Predicate<? super R> abort, Predicate<? super QueryPart> recurse, BiFunction<? super R, ? super QueryPart, ? extends R> before, BiFunction<? super R, ? super QueryPart, ? extends R> after) recurse()An optional recursion condition to prevent entering a specific subtree, e.g.supplier()A supplier for a temporary data structure to accumulateQueryPartobjects into during traversal.
- 
Method Details- 
ofstatic <R> Traverser<R,R> of(Supplier<R> supplier, BiFunction<? super R, ? super QueryPart, ? extends R> before) 
- 
ofstatic <R> Traverser<R,R> of(Supplier<R> supplier, BiFunction<? super R, ? super QueryPart, ? extends R> before, BiFunction<? super R, ? super QueryPart, ? extends R> after) 
- 
of
- 
ofstatic <R> Traverser<R,R> of(Supplier<R> supplier, Predicate<? super R> abort, Predicate<? super QueryPart> recurse, BiFunction<? super R, ? super QueryPart, ? extends R> before, BiFunction<? super R, ? super QueryPart, ? extends R> after) 
- 
ofstatic <A,R> Traverser<A,R> of(Supplier<A> supplier, Predicate<? super A> abort, Predicate<? super QueryPart> recurse, BiFunction<? super A, ? super QueryPart, ? extends A> before, BiFunction<? super A, ? super QueryPart, ? extends A> after, Function<? super A, ? extends R> finisher) Convenience method to create aTraverserwith asupplier(),abort(),recurse(),before(),after(), andfinisher().
- 
supplierA supplier for a temporary data structure to accumulateQueryPartobjects into during traversal.
- 
abortAn optional traversal abort condition to short circuit traversal e.g. when the searched object has been found.
- 
recurseAn optional recursion condition to prevent entering a specific subtree, e.g. when it is undesired to enter any subqueries.
- 
beforeBiFunction<A,QueryPart, before()A> A callback that is invoked before recursing into a subtree.
- 
afterBiFunction<A,QueryPart, after()A> A callback that is invoked after recursing into a subtree.
- 
finisherAn optional transformation function to turn the temporary data structure supplied bysupplier()into the final data structure.
 
-