DocumentFilterTemplate

A DocumentFilter with named placeholders, compiled once and bound to values any number of times (SPEC.md §10.6), as JsonPathTemplate is for a query: @.kind == ${kind} && @.version >= ${version}.

bind puts each value into the compiled filter as a literal, never as text, so no value can change what the filter tests. The bound filter is the one DocumentFilter.compile makes of the template's text with each placeholder replaced by its value's literal, and that text is its DocumentFilter.toString.

Immutable and thread-safe; two templates are equal when their texts are.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The names of the placeholders, each once, in the order they first appear in the text.

Functions

Link copied to clipboard

The filter with each placeholder replaced by the literal of its value, with the rules of JsonPathTemplate.bind.

bind with the values given as pairs: bind("kind" to JsonQueryValue.Str(kind)).

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String