Class PredicateAbstract

Building block of search queries. Represents any node in a tree of predicates, that are combined with BooleanOperators to create a search query.

See SearchService for more information.

Hierarchy (view full)

Constructors

Properties

_filterTextSegmentsGenerator: (() => FilterTextSegment[])
_visible: boolean

Accessors

Methods

  • Combines the text segments of the predicates with the given operator and wraps the individual predicates in brackets optionaly

    Parameters

    • predicates: IterableIterator<Predicate> | Predicate[]

      sources of text segments that are to be combined with a boolean operator

    • operator: BooleanOperator

      boolean operator used to combine the individual predicate text segments

    • wrapWithBrackets: boolean = false

      whether the individual predicate text segments should be wrapped in braces or not (if only one predicate is provided it is never wrapped)

    Returns FilterTextSegment[]