Skip to main content

Class: FunctionExtension

jsonpath.expressions.FunctionExtension

Base class for all filter expressions.

Hierarchy

Constructors

constructor

new FunctionExtension(token, name, args): FunctionExtension

Parameters

NameType
tokenToken
namestring
argsFilterExpression[]

Returns

FunctionExtension

Overrides

FilterExpression.constructor

Defined in

src/path/expression.ts:229

Properties

args

Readonly args: FilterExpression[]

Defined in

src/path/expression.ts:232


name

Readonly name: string

Defined in

src/path/expression.ts:231


token

Readonly token: Token

Inherited from

FilterExpression.token

Defined in

src/path/expression.ts:230

Methods

evaluate

evaluate(context): unknown

Evaluate the filter expression in the given context.

Parameters

NameTypeDescription
contextFilterContextEvaluation context.

Returns

unknown

Overrides

FilterExpression.evaluate

Defined in

src/path/expression.ts:237


toString

toString(): string

Return a string representation of the expression.

Returns

string

Overrides

FilterExpression.toString

Defined in

src/path/expression.ts:257


unpack_node_list

unpack_node_list(arg): unknown

Parameters

NameType
argJSONPathNodeList

Returns

unknown

Defined in

src/path/expression.ts:261