18 using System.Collections.Generic;
21 namespace Deveel.Data.Sql.Parser {
32 public IEnumerable<IExpressionNode> GroupExpressions {
get;
private set; }
41 if (node.
NodeName ==
"sql_expression_list") {
42 GetGroupExpressions(node);
43 }
else if (node.
NodeName ==
"having_clause_opt") {
47 return base.OnChildNode(node);
51 var exps =
new List<IExpressionNode>();
52 foreach (var childNode
in node.ChildNodes) {
54 exps.Add((IExpressionNode) childNode);
57 GroupExpressions = exps.ToArray();
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
string NodeName
Gets the name of the node analyzed from the parser.
override ISqlNode OnChildNode(ISqlNode node)
During the initialization of the node from the parser, this method is called for every child node add...
IEnumerable< ISqlNode > ChildNodes
Gets a read-only enumeration of the children nodes, if any.
void GetGroupExpressions(ISqlNode node)
A node that describes the GROUP BY clause in a SQL query.
This interface acts like a marker that indicates if a ISqlNode represents a SQL expression.
The default implementation of ISqlNode, that is a node in the text analysis parsing of SQL commands...