Skip to main content

BooleanExpression

@webda/ql


Class: BooleanExpression

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

Constant expression from a TRUE / FALSE literal

Constants are folded while the tree is built (see foldLogical), so this only remains when the whole filter is FALSE; a filter that is entirely TRUE is the match-everything AndExpression([]).

Extends​

Constructors​

Constructor​

new BooleanExpression(value): BooleanExpression

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

Parameters​

value​

boolean

the constant value

Returns​

BooleanExpression

Overrides​

Expression.constructor

Properties​

operator​

operator: "TRUE" | "FALSE"

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

Inherited from​

Expression.operator


value​

value: boolean

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

The constant value

Methods​

eval()​

eval(_target): boolean

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

Parameters​

_target​

any

Returns​

boolean

Overrides​

Expression.eval


isDynamic()​

isDynamic(): boolean

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

Returns​

boolean

Overrides​

Expression.isDynamic


toString()​

toString(): string

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

Returns​

string

Overrides​

Expression.toString