Class: FilterSelector
jsonpath.selectors.FilterSelector
Base class for all JSONPath segments and selectors.
Hierarchy
-
↳
FilterSelector
Constructors
constructor
• new FilterSelector(environment
, token
, expression
): FilterSelector
Parameters
Name | Type |
---|---|
environment | JSONPathEnvironment |
token | Token |
expression | LogicalExpression |
Returns
Overrides
Defined in
Properties
environment
• Readonly
environment: JSONPathEnvironment
Inherited from
Defined in
expression
• Readonly
expression: LogicalExpression
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