Class: NumberLiteral
jsonpath.expressions.NumberLiteral
Base class for JSONPath ValueType literals.
Hierarchy
-
↳
NumberLiteral
Constructors
constructor
• new NumberLiteral(token
, value
): NumberLiteral
Parameters
Name | Type |
---|---|
token | Token |
value | number |
Returns
Overrides
FilterExpressionLiteral.constructor
Defined in
Properties
token
• Readonly
token: Token
Inherited from
Defined in
value
• Readonly
value: number
Defined in
Methods
evaluate
▸ evaluate(): number
Evaluate the filter expression in the given context.
Returns
number
Overrides
FilterExpressionLiteral.evaluate
Defined in
toString
▸ toString(): string
Return a string representation of the expression.
Returns
string
Overrides
FilterExpressionLiteral.toString