QueryVisitor

abstract class QueryVisitor

Allows recursion through a query tree

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun acceptField(field: String?): Boolean

Whether or not this field is of interest to the visitor

Link copied to clipboard
open fun consumeTerms(query: Query, vararg terms: Term)

Called by leaf queries that match on specific terms

Link copied to clipboard
open fun consumeTermsMatching(query: Query, field: String, automaton: () -> ByteRunAutomaton)

Called by leaf queries that match on a class of terms.

Link copied to clipboard

Pulls a visitor instance for visiting child clauses of a query

Link copied to clipboard
open fun visitLeaf(query: Query?)

Called by leaf queries that do not match on terms