Class: FunctionExtension
jsonpath.expressions.FunctionExtension
Base class for all filter expressions.
Hierarchy
-
↳
FunctionExtension
Constructors
constructor
• new FunctionExtension(token
, name
, args
): FunctionExtension
Parameters
Name | Type |
---|---|
token | Token |
name | string |
args | FilterExpression [] |
Returns
Overrides
Defined in
Properties
args
• Readonly
args: FilterExpression
[]
Defined in
name
• Readonly
name: string
Defined in
token
• Readonly
token: Token
Inherited from
Defined in
Methods
evaluate
▸ evaluate(context
): unknown
Evaluate the filter expression in the given context.
Parameters
Name | Type | Description |
---|---|---|
context | FilterContext | Evaluation context. |
Returns
unknown
Overrides
Defined in
toString
▸ toString(): string
Return a string representation of the expression.
Returns
string
Overrides
Defined in
unpack_node_list
▸ unpack_node_list(arg
): unknown
Parameters
Name | Type |
---|---|
arg | JSONPathNodeList |
Returns
unknown