Skip to main content

Class: WildcardSelector

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

Base class for all JSONPath segments and selectors.

Extends​

Constructors​

new WildcardSelector()​

new WildcardSelector(environment, token): WildcardSelector

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

Parameters​

environment​

JSONPathEnvironment

token​

Token

Returns​

WildcardSelector

Overrides​

JSONPathSelector.constructor

Properties​

environment​

readonly environment: JSONPathEnvironment

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

Inherited from​

JSONPathSelector.environment


token​

readonly token: Token

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

The token at the start of this selector.

Inherited from​

JSONPathSelector.token

Methods​

lazyResolve()​

lazyResolve(node): Generator<JSONPathNode>

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

Parameters​

node​

JSONPathNode

Nodes matched by preceding selectors.

Returns​

Generator<JSONPathNode>

Overrides​

JSONPathSelector.lazyResolve


resolve()​

resolve(node): JSONPathNode[]

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

Parameters​

node​

JSONPathNode

Nodes matched by preceding selectors.

Returns​

JSONPathNode[]

Overrides​

JSONPathSelector.resolve


toString()​

toString(): string

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

Return a canonical string representation of this selector.

Returns​

string

Overrides​

JSONPathSelector.toString