Skip to main content

Class: WildcardSelector

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

Base class for all JSONPath segments and selectors.

Extends

Constructors

new WildcardSelector()

new WildcardSelector(environment, token): WildcardSelector

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

Parameters

environment

JSONPathEnvironment

token

Token

Returns

WildcardSelector

Overrides

JSONPathSelector.constructor

Properties

environment

readonly environment: JSONPathEnvironment

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

Inherited from

JSONPathSelector.environment


token

readonly token: Token

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

The token at the start of this selector.

Inherited from

JSONPathSelector.token

Methods

lazyResolve()

lazyResolve(node): Generator<JSONPathNode>

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

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

Generator<JSONPathNode>

Overrides

JSONPathSelector.lazyResolve


resolve()

resolve(node): JSONPathNode[]

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

Parameters

node

JSONPathNode

Nodes matched by preceding selectors.

Returns

JSONPathNode[]

Overrides

JSONPathSelector.resolve


toString()

toString(): string

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

Return a canonical string representation of this selector.

Returns

string

Overrides

JSONPathSelector.toString