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
ASTLiteral<boolean|null>
Constructors
Constructor
new ASTBooleanLiteral(
original):ASTBooleanLiteral
Defined in: lang-cypher/src/ast/literal.ts:108
Parameters
| Parameter | Type |
|---|---|
original | string |
Returns
ASTBooleanLiteral
Overrides
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
value
value:
boolean
Defined in: core/dist/ast.d.ts:20
Parsed runtime value.
Inherited from
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
| Parameter | Type |
|---|---|
visitor | CypherVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret
Overrides
parse()
protectedparse(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
| Parameter | Type |
|---|---|
val | string |
Returns
boolean