Skip to main content

Class: PrefixExpression

jsonpath.expressions.PrefixExpression

Base class for all filter expressions.

Hierarchy

Constructors

constructor

new PrefixExpression(token, operator, right): PrefixExpression

Parameters

NameType
tokenToken
operatorstring
rightFilterExpression

Returns

PrefixExpression

Overrides

FilterExpression.constructor

Defined in

src/path/expression.ts:95

Properties

operator

Readonly operator: string

Defined in

src/path/expression.ts:97


Readonly right: FilterExpression

Defined in

src/path/expression.ts:98


token

Readonly token: Token

Inherited from

FilterExpression.token

Defined in

src/path/expression.ts:96

Methods

evaluate

evaluate(context): boolean

Evaluate the filter expression in the given context.

Parameters

NameTypeDescription
contextFilterContextEvaluation context.

Returns

boolean

Overrides

FilterExpression.evaluate

Defined in

src/path/expression.ts:103


toString

toString(): string

Return a string representation of the expression.

Returns

string

Overrides

FilterExpression.toString

Defined in

src/path/expression.ts:115