Skip to main content

BooleanExpression

@webda/ql


Class: BooleanExpression

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

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:786

Parameters​

value​

boolean

the constant value

Returns​

BooleanExpression

Overrides​

Expression.constructor

Properties​

operator​

operator: "TRUE" | "FALSE"

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

Inherited from​

Expression.operator


value​

value: boolean

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

The constant value

Methods​

eval()​

eval(_target): boolean

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

Parameters​

_target​

any

Returns​

boolean

Overrides​

Expression.eval


toString()​

toString(): string

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

Returns​

string

Overrides​

Expression.toString