Skip to main content

Class: FilterExpression

jsonpath.expressions.FilterExpression

Base class for all filter expressions.

Hierarchy

Constructors

constructor

new FilterExpression(token): FilterExpression

Parameters

NameType
tokenToken

Returns

FilterExpression

Defined in

src/path/expression.ts:14

Properties

token

Readonly token: Token

Defined in

src/path/expression.ts:14

Methods

evaluate

evaluate(context): unknown

Evaluate the filter expression in the given context.

Parameters

NameTypeDescription
contextFilterContextEvaluation context.

Returns

unknown

Defined in

src/path/expression.ts:20


toString

toString(): string

Return a string representation of the expression.

Returns

string

Defined in

src/path/expression.ts:25