Class: LogicalExpression
jsonpath.expressions.LogicalExpression
Base class for all filter expressions.
Hierarchy
-
↳
LogicalExpression
Constructors
constructor
• new LogicalExpression(token
, expression
): LogicalExpression
Parameters
Name | Type |
---|---|
token | Token |
expression | FilterExpression |
Returns
Overrides
Defined in
Properties
expression
• Readonly
expression: 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