Skip to main content

Class: Count

jsonpath.functions.Count

A JSONPath filter function definition.

Implements

Constructors

constructor

new Count(): Count

Returns

Count

Properties

argTypes

Readonly argTypes: FunctionExpressionType[]

Argument types expected by the filter function.

Implementation of

FilterFunction.argTypes

Defined in

src/path/functions/count.ts:5


returnType

Readonly returnType: ValueType = FunctionExpressionType.ValueType

The type of the value returned by the filter function.

Implementation of

FilterFunction.returnType

Defined in

src/path/functions/count.ts:6

Methods

call

call(nodes): number

A function with unknown number and type of arguments.

Parameters

NameType
nodesJSONPathNodeList

Returns

number

Implementation of

FilterFunction.call

Defined in

src/path/functions/count.ts:8