Skip to main content

Class: StringLiteral

jsonpath.expressions.StringLiteral

Base class for JSONPath ValueType literals.

Hierarchy

Constructors

constructor

new StringLiteral(token, value): StringLiteral

Parameters

NameType
tokenToken
valuestring

Returns

StringLiteral

Overrides

FilterExpressionLiteral.constructor

Defined in

src/path/expression.ts:61

Properties

token

Readonly token: Token

Inherited from

FilterExpressionLiteral.token

Defined in

src/path/expression.ts:62


value

Readonly value: string

Defined in

src/path/expression.ts:63

Methods

evaluate

evaluate(): string

Evaluate the filter expression in the given context.

Returns

string

Overrides

FilterExpressionLiteral.evaluate

Defined in

src/path/expression.ts:68


toString

toString(): string

Return a string representation of the expression.

Returns

string

Overrides

FilterExpressionLiteral.toString

Defined in

src/path/expression.ts:72