Class: InfixExpression
jsonpath.expressions.InfixExpression
Base class for all filter expressions.
Hierarchy
-
↳
InfixExpression
Constructors
constructor
• new InfixExpression(token
, left
, operator
, right
): InfixExpression
Parameters
Name | Type |
---|---|
token | Token |
left | FilterExpression |
operator | string |
right | FilterExpression |
Returns
Overrides
Defined in
Properties
left
• Readonly
left: FilterExpression
Defined in
logical
• Readonly
logical: boolean
Defined in
operator
• Readonly
operator: string
Defined in
right
• Readonly
right: FilterExpression
Defined in
token
• Readonly
token: Token
Inherited from
Defined in
Methods
evaluate
▸ evaluate(context
): boolean
Evaluate the filter expression in the given context.
Parameters
Name | Type | Description |
---|---|---|
context | FilterContext | Evaluation context. |
Returns
boolean
Overrides
Defined in
toString
▸ toString(): string
Return a string representation of the expression.
Returns
string