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