Skip to main content

Expression

@webda/ql


Abstract Class: Expression<T>

Defined in: packages/ql/src/query.ts:865

Represent the query expression or subset

Extended by​

Type Parameters​

T​

T = string

Constructors​

Constructor​

new Expression<T>(operator): Expression<T>

Defined in: packages/ql/src/query.ts:871

Create a new Expression.

Parameters​

operator​

T

the expression operator

Returns​

Expression<T>

Properties​

operator​

operator: T

Defined in: packages/ql/src/query.ts:866

Methods​

eval()​

abstract eval(target): boolean

Defined in: packages/ql/src/query.ts:879

Evaluate the expression for the target object

Parameters​

target​

any

to evaluate

Returns​

boolean


isDynamic()​

abstract isDynamic(): boolean

Defined in: packages/ql/src/query.ts:888

Check whether the expression depends on dynamic values (such as NOW())

Returns​

boolean


toString()​

abstract toString(depth?): string

Defined in: packages/ql/src/query.ts:884

Return the representation of the expression

Parameters​

depth?​

number

Returns​

string