21 namespace Deveel.Data.Sql.Parser {
39 var keyNode = (SqlKeyNode) node;
40 if (String.Equals(keyNode.Text,
"true", StringComparison.OrdinalIgnoreCase)) {
42 }
else if (String.Equals(keyNode.Text,
"false", StringComparison.OrdinalIgnoreCase)) {
44 }
else if (String.Equals(keyNode.Text,
"null", StringComparison.OrdinalIgnoreCase)) {
47 Value =
new SqlString(((SqlKeyNode) node).Text.ToCharArray());
50 Value =
new SqlNumber(((IntegerLiteralNode) node).BigValue);
52 Value =
new SqlNumber(((NumberLiteralNode) node).BigValue);
54 Value =
new SqlString(((StringLiteralNode) node).Value.ToCharArray());
57 return base.OnChildNode(node);
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
Represents a keyword found during the compilation of a source text.
Handles a numeric literal value, belonging to a wider group than integer numbers, spanning from real ...
SqlConstantExpressionNode()
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
static readonly SqlNull Value
Defines the contract for a valid SQL Object
A node containing a constant literal string passed within an SQL command.
An node that represents a constant value set within a context of an SQL command.
This interface acts like a marker that indicates if a ISqlNode represents a SQL expression.
Deveel.Data.Sql.Objects.SqlString SqlString
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...
Encapsulates a number that is any falling in the group of integers.