Class: RootQuery
jsonpath.expressions.RootQuery
Base class for relative and absolute JSONPath query expressions.
Hierarchy
-
↳
RootQuery
Constructors
constructor
• new RootQuery(token
, path
): RootQuery
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