routier-collection


routier-collection / core/src / ComparatorExpression

Class: ComparatorExpression

Defined in: core/src/expressions/types.ts:54

A class representing a comparison operation (e.g., equals, greater-than).

Extends

Constructors

Constructor

new ComparatorExpression(options): ComparatorExpression

Defined in: core/src/expressions/types.ts:64

Parameters

options
comparator

Comparator

negated

boolean

strict

boolean

left?

Expression

Expression

Returns

ComparatorExpression

Overrides

Expression.constructor

Properties

left?

optional left: Expression

Defined in: core/src/expressions/types.ts:17

The left-hand side of the expression (if applicable).

Inherited from

Expression.left


right?

optional right: Expression

Defined in: core/src/expressions/types.ts:19

The right-hand side of the expression (if applicable).

Inherited from

Expression.right


type

readonly type: "comparator"

Defined in: core/src/expressions/types.ts:56

The type of the expression (always ‘comparator’).

Overrides

Expression.type


comparator

comparator: Comparator

Defined in: core/src/expressions/types.ts:58

The comparator operation (e.g., equals, greater-than).


negated

negated: boolean

Defined in: core/src/expressions/types.ts:60

Whether the comparison is negated (e.g., not equals).


strict

strict: boolean

Defined in: core/src/expressions/types.ts:62

Whether the comparison is strict (type-sensitive).

Accessors

EMPTY

Get Signature

get static EMPTY(): EmptyExpression

Defined in: core/src/expressions/types.ts:26

Returns

EmptyExpression

Inherited from

Expression.EMPTY


NOT_PARSABLE

Get Signature

get static NOT_PARSABLE(): NotParsableExpression

Defined in: core/src/expressions/types.ts:30

Returns

NotParsableExpression

Inherited from

Expression.NOT_PARSABLE

Methods

isEmpty()

static isEmpty(expression): boolean

Defined in: core/src/expressions/types.ts:34

Parameters

expression

Expression

Returns

boolean

Inherited from

Expression.isEmpty


isNotParsable()

static isNotParsable(expression): boolean

Defined in: core/src/expressions/types.ts:38

Parameters

expression

Expression

Returns

boolean

Inherited from

Expression.isNotParsable