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