class

Filter

@Js
const abstract class Filter : Obj

Filter models a declarative predicate for selecting dicts. See Filters for details.

constructors fromStr

Parse a query from string - see Filters for format

methods toStr

Return the normalized string of the filter

equals

Equality is based on the normalized string

matches

Return if the specified record matches this filter

hash

Hash is based on toStr

equals virtual Bool equals(Obj? that)

Equality is based on the normalized string.

fromStr static new fromStr(Str s, Bool checked)

Parse a query from string - see Filters for format. If the query cannot be parsed then return null or throw ParseErr with location of error.

hash virtual Int hash()

Hash is based on toStr.

matches Bool matches(Dict r, HaystackContext? cx)

Return if the specified record matches this filter. Pass a context object to enable def aware features and to path through refs via the -> operator.

toStr abstract Str toStr()

Return the normalized string of the filter

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST