Class: abstract
JSONPathSegment
Base class for all JSONPath segments. Both shorthand and bracketed.
Constructors
new JSONPathSegment()
new JSONPathSegment(
environment
,token
,selectors
):JSONPathSegment
Parameters
environment
token
selectors
Returns
Defined in
Properties
environment
readonly
environment:JSONPathEnvironment
Defined in
selectors
readonly
selectors:JSONPathSelector
[]
Defined in
token
readonly
token:Token
Defined in
Methods
lazyResolve()
abstract
lazyResolve(nodes
):Generator
<JSONPathNode
,any
,any
>
Parameters
nodes
Iterable
<JSONPathNode
, any
, any
>
Nodes matched by preceding segments.
Returns
Generator
<JSONPathNode
, any
, any
>
Defined in
resolve()
abstract
resolve(nodes
):JSONPathNode
[]
Parameters
nodes
Nodes matched by preceding segments.
Returns
Defined in
toString()
abstract
toString():string
Return a canonical string representation of this segment.
Returns
string