Skip to main content

Class: abstract JSONPathSelector

Defined in: src/path/selectors.ts:18

Base class for all JSONPath segments and selectors.

Extended by

Constructors

new JSONPathSelector()

new JSONPathSelector(environment, token): JSONPathSelector

Defined in: src/path/selectors.ts:22

Parameters

environment

JSONPathEnvironment

token

Token

The token at the start of this selector.

Returns

JSONPathSelector

Properties

environment

readonly environment: JSONPathEnvironment

Defined in: src/path/selectors.ts:23


token

readonly token: Token

Defined in: src/path/selectors.ts:24

The token at the start of this selector.

Methods

lazyResolve()

abstract lazyResolve(node): Generator<JSONPathNode>

Defined in: src/path/selectors.ts:35

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

Generator<JSONPathNode>


resolve()

abstract resolve(node): JSONPathNode[]

Defined in: src/path/selectors.ts:30

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

JSONPathNode[]


toString()

abstract toString(options?): string

Defined in: src/path/selectors.ts:40

Return a canonical string representation of this selector.

Parameters

options?

SerializationOptions

Returns

string