DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Package Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Parser.SqlExpressionTupleNode Class Reference

An expression containing a set of other expressions. More...

Inheritance diagram for Deveel.Data.Sql.Parser.SqlExpressionTupleNode:
Deveel.Data.Sql.Parser.SqlNode Deveel.Data.Sql.Parser.IExpressionNode Deveel.Data.Sql.Parser.ISqlNode Deveel.Data.Sql.Parser.ISqlNode

Public Member Functions

 SqlExpressionTupleNode (IEnumerable< IExpressionNode > expressions)
 
- Public Member Functions inherited from Deveel.Data.Sql.Parser.SqlNode
 SqlNode ()
 

Protected Member Functions

override ISqlNode OnChildNode (ISqlNode node)
 During the initialization of the node from the parser, this method is called for every child node added to ChildNodes More...
 
- Protected Member Functions inherited from Deveel.Data.Sql.Parser.SqlNode
virtual void OnNodeInit ()
 After the initialization of the node from the parser, this method is invoked to let the specific initialization to occur. More...
 

Package Functions

 SqlExpressionTupleNode ()
 

Properties

IEnumerable< IExpressionNodeExpressions [get, private set]
 Gets a read-only list of expression that are contained within this tuple. More...
 
- Properties inherited from Deveel.Data.Sql.Parser.SqlNode
ISqlNode Parent [get, private set]
 Gets the parent of the current node. More...
 
string NodeName [get, private set]
 Gets the name of the node, as expressed in the SQL grammar. More...
 
IEnumerable< ISqlNodeChildNodes [get, private set]
 Gets an immutable list of nodes, children of the current node. More...
 
IEnumerable< TokenTokens [get, private set]
 Gets an immutable list of Token that represent the source of this node. More...
 
string ISqlNode. NodeName [get]
 
ISqlNode ISqlNode. Parent [get]
 
IEnumerable< ISqlNode > ISqlNode. ChildNodes [get]
 
IEnumerable< Token > ISqlNode. Tokens [get]
 
- Properties inherited from Deveel.Data.Sql.Parser.ISqlNode
string NodeName [get]
 Gets the name of the node analyzed from the parser. More...
 
ISqlNode Parent [get]
 Gets a reference to the parent ISqlNode, if any. More...
 
IEnumerable< ISqlNodeChildNodes [get]
 Gets a read-only enumeration of the children nodes, if any. More...
 
IEnumerable< TokenTokens [get]
 Gets an enumeration of the tokens composing the this node. More...
 

Private Member Functions

void GetExpressions (ISqlNode node)
 

Detailed Description

An expression containing a set of other expressions.

Definition at line 24 of file SqlExpressionTupleNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Parser.SqlExpressionTupleNode.SqlExpressionTupleNode ( )
inlinepackage

Definition at line 25 of file SqlExpressionTupleNode.cs.

25  {
26  }
Deveel.Data.Sql.Parser.SqlExpressionTupleNode.SqlExpressionTupleNode ( IEnumerable< IExpressionNode expressions)
inline

Definition at line 28 of file SqlExpressionTupleNode.cs.

28  {
29  Expressions = expressions;
30  }
IEnumerable< IExpressionNode > Expressions
Gets a read-only list of expression that are contained within this tuple.

Member Function Documentation

void Deveel.Data.Sql.Parser.SqlExpressionTupleNode.GetExpressions ( ISqlNode  node)
inlineprivate

Definition at line 46 of file SqlExpressionTupleNode.cs.

46  {
47  var exps = new List<IExpressionNode>();
48  foreach (var childNode in node.ChildNodes) {
49  if (childNode is IExpressionNode)
50  exps.Add((IExpressionNode)childNode);
51  }
52 
53  Expressions = exps.ToArray();
54  }
IEnumerable< IExpressionNode > Expressions
Gets a read-only list of expression that are contained within this tuple.
override ISqlNode Deveel.Data.Sql.Parser.SqlExpressionTupleNode.OnChildNode ( ISqlNode  node)
inlineprotectedvirtual

During the initialization of the node from the parser, this method is called for every child node added to ChildNodes

Reimplemented from Deveel.Data.Sql.Parser.SqlNode.

Definition at line 39 of file SqlExpressionTupleNode.cs.

39  {
40  if (node.NodeName == "sql_expression_list")
41  GetExpressions(node);
42 
43  return base.OnChildNode(node);
44  }

Property Documentation

IEnumerable<IExpressionNode> Deveel.Data.Sql.Parser.SqlExpressionTupleNode.Expressions
getprivate set

Gets a read-only list of expression that are contained within this tuple.

Definition at line 36 of file SqlExpressionTupleNode.cs.


The documentation for this class was generated from the following file: