Class: RelativeQuery
jsonpath.expressions.RelativeQuery
Base class for relative and absolute JSONPath query expressions.
Hierarchy
-
↳
RelativeQuery
Constructors
constructor
• new RelativeQuery(token
, path
): RelativeQuery
Parameters
Name | Type |
---|---|
token | Token |
path | JSONPath |
Returns
Inherited from
Defined in
Properties
path
• Readonly
path: JSONPath
Inherited from
Defined in
token
• Readonly
token: Token
Inherited from
Defined in
Methods
evaluate
▸ evaluate(context
): JSONPathNodeList
Evaluate the filter expression in the given context.
Parameters
Name | Type | Description |
---|---|---|
context | FilterContext | Evaluation context. |
Returns
Overrides
Defined in
toString
▸ toString(): string
Return a string representation of the expression.
Returns
string