Skip to main content

Class: BooleanLiteral

jsonpath.expressions.BooleanLiteral

Base class for JSONPath ValueType literals.

Hierarchy

Constructors

constructor

new BooleanLiteral(token, value): BooleanLiteral

Parameters

NameType
tokenToken
valueboolean

Returns

BooleanLiteral

Overrides

FilterExpressionLiteral.constructor

Defined in

src/path/expression.ts:44

Properties

token

Readonly token: Token

Inherited from

FilterExpressionLiteral.token

Defined in

src/path/expression.ts:45


value

Readonly value: boolean

Defined in

src/path/expression.ts:46

Methods

evaluate

evaluate(): boolean

Evaluate the filter expression in the given context.

Returns

boolean

Overrides

FilterExpressionLiteral.evaluate

Defined in

src/path/expression.ts:51


toString

toString(): string

Return a string representation of the expression.

Returns

string

Overrides

FilterExpressionLiteral.toString

Defined in

src/path/expression.ts:55