Class: abstract
JSONPathSelector
Defined in: src/path/selectors.ts:18
Base class for all JSONPath segments and selectors.
Extended by
Constructors
new JSONPathSelector()
new JSONPathSelector(
environment
,token
):JSONPathSelector
Defined in: src/path/selectors.ts:22
Parameters
environment
token
The token at the start of this selector.
Returns
Properties
environment
readonly
environment:JSONPathEnvironment
Defined in: src/path/selectors.ts:23
token
readonly
token:Token
Defined in: src/path/selectors.ts:24
The token at the start of this selector.
Methods
lazyResolve()
abstract
lazyResolve(node
):Generator
<JSONPathNode
>
Defined in: src/path/selectors.ts:35
Parameters
node
Nodes matched by preceding selectors.
Returns
Generator
<JSONPathNode
>
resolve()
abstract
resolve(node
):JSONPathNode
[]
Defined in: src/path/selectors.ts:30
Parameters
node
Nodes matched by preceding selectors.
Returns
toString()
abstract
toString(options
?):string
Defined in: src/path/selectors.ts:40
Return a canonical string representation of this selector.
Parameters
options?
Returns
string