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
readonlyenvironment:JSONPathEnvironment
Defined in: src/path/selectors.ts:23
token
readonlytoken:Token
Defined in: src/path/selectors.ts:24
The token at the start of this selector.
Methods
lazyResolve()
abstractlazyResolve(node):Generator<JSONPathNode>
Defined in: src/path/selectors.ts:35
Parameters
node
Nodes matched by preceding selectors.
Returns
Generator<JSONPathNode>
resolve()
abstractresolve(node):JSONPathNode[]
Defined in: src/path/selectors.ts:30
Parameters
node
Nodes matched by preceding selectors.
Returns
toString()
abstracttoString(options?):string
Defined in: src/path/selectors.ts:40
Return a canonical string representation of this selector.
Parameters
options?
Returns
string