Skip to main content

@webda/coreReadme | API


Class: abstract LogicalExpression<T>

Abstract logic expression (AND|OR)

Could add XOR in the future

Extends

Type parameters

T

Constructors

new LogicalExpression(operator, children)

new LogicalExpression<T>(operator, children): LogicalExpression<T>

Parameters

operator: T

children: Expression<string>[]

Returns

LogicalExpression<T>

Overrides

Expression.constructor

Source

packages/core/src/stores/webdaql/query.ts:503

Properties

children

children: Expression<string>[] = []

Contains the members of the logical expression

Source

packages/core/src/stores/webdaql/query.ts:497


operator

operator: T

Inherited from

Expression.operator

Source

packages/core/src/stores/webdaql/query.ts:318

Methods

eval()

abstract eval(target): boolean

Evaluate the expression for the target object

Parameters

target: any

to evaluate

Returns

boolean

Inherited from

Expression.eval

Source

packages/core/src/stores/webdaql/query.ts:328


toString()

toString(depth): string

Parameters

depth: number= 0

Returns

string

Overrides

Expression.toString

Source

packages/core/src/stores/webdaql/query.ts:511