@Experimental @Pro public interface Replacer
An API for
QueryPart.$replace(Replacer)query part transformations.
This API is EXPERIMENTAL. Use at your own risk.
replacer() for the contract that must be obeyed by the
ofstatic Replacer of
(Predicate<? super QueryPart> recurse, Function<? super QueryPart, ? extends QueryPart> replacer)
recurseAn optional recursion condition to prevent entering a specific subtree, e.g. when it is undesired to enter any subqueries.
replacerA callback that is invoked on all elements of the
Any such callback must obey the following contract: