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
negated
boolean
strict
boolean
left?
right?
Returns
ComparatorExpression
Overrides
Properties
left?
optionalleft:Expression
Defined in: core/src/expressions/types.ts:17
The left-hand side of the expression (if applicable).
Inherited from
right?
optionalright:Expression
Defined in: core/src/expressions/types.ts:19
The right-hand side of the expression (if applicable).
Inherited from
type
readonlytype:"comparator"
Defined in: core/src/expressions/types.ts:56
The type of the expression (always ‘comparator’).
Overrides
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
staticEMPTY():EmptyExpression
Defined in: core/src/expressions/types.ts:26
Returns
Inherited from
NOT_PARSABLE
Get Signature
get
staticNOT_PARSABLE():NotParsableExpression
Defined in: core/src/expressions/types.ts:30
Returns
Inherited from
Methods
isEmpty()
staticisEmpty(expression):boolean
Defined in: core/src/expressions/types.ts:34
Parameters
expression
Returns
boolean
Inherited from
isNotParsable()
staticisNotParsable(expression):boolean
Defined in: core/src/expressions/types.ts:38
Parameters
expression
Returns
boolean