Skip to main content

Class: abstract JSONPathSelector

Base class for all JSONPath segments and selectors.

Extended by

Constructors

new JSONPathSelector()

new JSONPathSelector(environment, token): JSONPathSelector

Parameters

environment

JSONPathEnvironment

token

Token

The token at the start of this selector.

Returns

JSONPathSelector

Defined in

src/path/selectors.ts:16

Properties

environment

readonly environment: JSONPathEnvironment

Defined in

src/path/selectors.ts:17


token

readonly token: Token

The token at the start of this selector.

Defined in

src/path/selectors.ts:18

Methods

lazyResolve()

abstract lazyResolve(node): Generator<JSONPathNode, any, any>

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

Generator<JSONPathNode, any, any>

Defined in

src/path/selectors.ts:29


resolve()

abstract resolve(node): JSONPathNode[]

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

JSONPathNode[]

Defined in

src/path/selectors.ts:24


toString()

abstract toString(): string

Return a canonical string representation of this selector.

Returns

string

Defined in

src/path/selectors.ts:34