type
Filter
@Js
abstract const class Filter : Obj
Filter models a declarative predicate for selecting dicts. See Filters for details.
constructors
methods
equals |
Equality is based on the normalized string. |
---|---|
hash |
Hash is based on |
include |
Deprecated - use |
matches |
Return if the specified record matches this filter. |
toStr |
Return the normalized string of the filter |
Slot Details
equals
fromStr
hash
virtual override Int hash()
Hash is based on toStr
.
include
matches
Bool matches(Dict r, HaystackContext? cx := null)
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 override Str toStr()
Return the normalized string of the filter