An API for
QueryPart.$replace(Replacer) query part transformations.
This API is EXPERIMENTAL. Use at your own risk.
See replacer() for the contract that must be obeyed by the
replacer() function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReplacerConvenience method to create aReplacerwith areplacer().static Replacerrecurse()An optional recursion condition to prevent entering a specific subtree, e.g.replacer()A callback that is invoked on all elements of theQueryPartexpression tree.
-
Method Details
-
of
Convenience method to create aReplacerwith areplacer(). -
of
-
recurse
An optional recursion condition to prevent entering a specific subtree, e.g. when it is undesired to enter any subqueries. -
replacer
A callback that is invoked on all elements of theQueryPartexpression tree.Any such callback must obey the following contract:
-