Skip to main content

Class: ASTBooleanLiteral

Defined in: lang-cypher/src/ast/literal.ts:107

Boolean or null literal (true, false, or null); the parsed value is true, false, or null accordingly.

Extends

Constructors

Constructor

new ASTBooleanLiteral(original): ASTBooleanLiteral

Defined in: lang-cypher/src/ast/literal.ts:108

Parameters

ParameterType
originalstring

Returns

ASTBooleanLiteral

Overrides

ASTLiteral.constructor

Properties

original

original: string

Defined in: core/dist/ast.d.ts:18

Raw source text of the literal as it appeared in the query.

Inherited from

ASTLiteral.original


value

value: boolean

Defined in: core/dist/ast.d.ts:20

Parsed runtime value.

Inherited from

ASTLiteral.value

Methods

accept()

accept<Ret, Arg>(visitor, arg?): Ret

Defined in: lang-cypher/src/ast/literal.ts:113

ASTNode.accept

Type Parameters

Type Parameter
Ret
Arg

Parameters

ParameterType
visitorCypherVisitor<Ret, Arg>
arg?Arg

Returns

Ret

Overrides

ASTLiteral.accept


parse()

protected parse(val): boolean

Defined in: lang-cypher/src/ast/literal.ts:121

Converts the source text to true, false, or null (case-insensitive); returns null for any value other than 'true' or 'false'.

Parameters

ParameterType
valstring

Returns

boolean