Class: WildcardSelector
jsonpath.selectors.WildcardSelector
Base class for all JSONPath segments and selectors.
Hierarchy
-
↳
WildcardSelector
Constructors
constructor
• new WildcardSelector(environment
, token
, shorthand?
): WildcardSelector
Parameters
Name | Type | Default value |
---|---|---|
environment | JSONPathEnvironment | undefined |
token | Token | undefined |
shorthand | boolean | false |
Returns
Overrides
Defined in
Properties
environment
• Readonly
environment: JSONPathEnvironment
Inherited from
Defined in
shorthand
• Readonly
shorthand: boolean
= false
Defined in
token
• Readonly
token: Token
The token at the start of this selector.
Inherited from
Defined in
Methods
lazyResolve
▸ lazyResolve(nodes
): Generator
<JSONPathNode
, any
, unknown
>
Parameters
Name | Type | Description |
---|---|---|
nodes | Iterable <JSONPathNode > | Nodes matched by preceding selectors. |
Returns
Generator
<JSONPathNode
, any
, unknown
>
Overrides
Defined in
resolve
▸ resolve(nodes
): JSONPathNode
[]
Parameters
Name | Type | Description |
---|---|---|
nodes | JSONPathNode [] | Nodes matched by preceding selectors. |
Returns
Overrides
Defined in
toString
▸ toString(): string
Return a canonical string representation of this selector.
Returns
string