Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstraction of queries, so that their implementation can be replaced as needed.

Hierarchy

  • Query

Index

Constructors

  • new Query(_value: string, _empty?: boolean): Query

Accessors

  • get isEmpty(): boolean
  • get value(): string

Methods

  • equals(query: Query): boolean
  • Parameters

    • query: Query

      the query that should be compared

    Returns boolean

    true if and only if the queries are equal. Returns false if the queries are not equal, or if attempting to tell the queries apart is too complicated. More specifically the method can always tell apart empty queries and if poth queries are non-empty then their values are compared.

  • Combines multiple queries into one with the provided operator.

    Parameters

    • queries: Query[]

      queries that should be combined. Empty queries in the input array are ignored.

    • operator: BooleanOperator

      operator that is used to combine the queries

    Returns Query

    a single query that is the combination of the non-empty queries in the input array. If the input array is empty an [empty query]{@link Query#emptyQuery} will be returned.

Generated using TypeDoc