DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Protected Member Functions | Package Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Parser.SequenceOfStatementsNode Class Reference
Inheritance diagram for Deveel.Data.Sql.Parser.SequenceOfStatementsNode:
Deveel.Data.Sql.Parser.SqlNode Deveel.Data.Sql.Parser.ISqlNode

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

 SequenceOfStatementsNode ()
 

Properties

IEnumerable< IStatementNodeStatements [get]
 
- 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 ReadStatements (IEnumerable< ISqlNode > nodes)
 

Private Attributes

readonly ICollection< IStatementNodestatementNodes
 

Additional Inherited Members

- Public Member Functions inherited from Deveel.Data.Sql.Parser.SqlNode
 SqlNode ()
 

Detailed Description

Definition at line 22 of file SequenceOfStatementsNode.cs.

Constructor & Destructor Documentation

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

Definition at line 25 of file SequenceOfStatementsNode.cs.

25  {
26  statementNodes = new List<IStatementNode>();
27  }
readonly ICollection< IStatementNode > statementNodes

Member Function Documentation

override ISqlNode Deveel.Data.Sql.Parser.SequenceOfStatementsNode.OnChildNode ( ISqlNode  node)
inlineprotectedvirtual

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

Parameters
nodeThe node being added to the list of children.
Returns
Returns a normalized version of the child node, or the node itself.

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

Definition at line 33 of file SequenceOfStatementsNode.cs.

33  {
34  ReadStatements(node.ChildNodes);
35  return base.OnChildNode(node);
36  }
void ReadStatements(IEnumerable< ISqlNode > nodes)
void Deveel.Data.Sql.Parser.SequenceOfStatementsNode.ReadStatements ( IEnumerable< ISqlNode nodes)
inlineprivate

Definition at line 38 of file SequenceOfStatementsNode.cs.

38  {
39  foreach (var node in nodes) {
40  if (node is IStatementNode) {
41  statementNodes.Add(node as IStatementNode);
42  } else {
43  ReadStatements(node.ChildNodes);
44  }
45  }
46  }
void ReadStatements(IEnumerable< ISqlNode > nodes)
readonly ICollection< IStatementNode > statementNodes

Member Data Documentation

readonly ICollection<IStatementNode> Deveel.Data.Sql.Parser.SequenceOfStatementsNode.statementNodes
private

Definition at line 23 of file SequenceOfStatementsNode.cs.

Property Documentation

IEnumerable<IStatementNode> Deveel.Data.Sql.Parser.SequenceOfStatementsNode.Statements
get

Definition at line 29 of file SequenceOfStatementsNode.cs.


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