Skip to main content

Class: FilterExpressionLiteral

jsonpath.expressions.FilterExpressionLiteral

Base class for JSONPath ValueType literals.

Hierarchy

Constructors

constructor

new FilterExpressionLiteral(token): FilterExpressionLiteral

Parameters

NameType
tokenToken

Returns

FilterExpressionLiteral

Inherited from

FilterExpression.constructor

Defined in

src/path/expression.ts:14

Properties

token

Readonly token: Token

Inherited from

FilterExpression.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

Inherited from

FilterExpression.evaluate

Defined in

src/path/expression.ts:20


toString

toString(): string

Return a string representation of the expression.

Returns

string

Inherited from

FilterExpression.toString

Defined in

src/path/expression.ts:25