Skip to main content

Class: WildcardSelector

Base class for all JSONPath segments and selectors.

Extends

Constructors

new WildcardSelector()

new WildcardSelector(environment, token): WildcardSelector

Parameters

environment

JSONPathEnvironment

token

Token

Returns

WildcardSelector

Overrides

JSONPathSelector.constructor

Defined in

src/path/selectors.ts:292

Properties

environment

readonly environment: JSONPathEnvironment

Inherited from

JSONPathSelector.environment

Defined in

src/path/selectors.ts:293


token

readonly token: Token

The token at the start of this selector.

Inherited from

JSONPathSelector.token

Defined in

src/path/selectors.ts:294

Methods

lazyResolve()

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

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

Generator<JSONPathNode, any, any>

Overrides

JSONPathSelector.lazyResolve

Defined in

src/path/selectors.ts:316


resolve()

resolve(node): JSONPathNode[]

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

JSONPathNode[]

Overrides

JSONPathSelector.resolve

Defined in

src/path/selectors.ts:299


toString()

toString(): string

Return a canonical string representation of this selector.

Returns

string

Overrides

JSONPathSelector.toString

Defined in

src/path/selectors.ts:332