Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Predicate Abstract

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

Index

Constructors

  • new Predicate(initiallyVisible?: boolean): Predicate

Properties

_filterTextSegmentsGenerator: (() => FilterTextSegment[])

Type declaration

_metadataGenerator: (() => GeneratorMetadata)

Type declaration

_visible: boolean

Accessors

  • get isVisible(): boolean

Methods

  • setFilterTextSegmentsGenerator(filterTextSegmentsGenerator: (() => FilterTextSegment[])): void
  • show(): void
  • 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[]

Generated using TypeDoc