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