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

Represents the node that is a database table as source of a query. More...

Inheritance diagram for Deveel.Data.Sql.Parser.FromTableSourceNode:
Deveel.Data.Sql.Parser.SqlNode Deveel.Data.Sql.Parser.IFromSourceNode Deveel.Data.Sql.Parser.ISqlNode 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

 FromTableSourceNode ()
 

Properties

IdentifierNode Alias [get, private set]
 
ObjectNameNode TableName [get, private set]
 Gets the name of the table that is set as source of a query. 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...
 
- Properties inherited from Deveel.Data.Sql.Parser.IFromSourceNode
IdentifierNode Alias [get]
 Gets an alias that uniquely identifies the source within a query context. More...
 

Additional Inherited Members

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

Detailed Description

Represents the node that is a database table as source of a query.

See also
IFromSourceNode

Definition at line 25 of file FromTableSourceNode.cs.

Constructor & Destructor Documentation

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

Definition at line 26 of file FromTableSourceNode.cs.

26  {
27  }

Member Function Documentation

override ISqlNode Deveel.Data.Sql.Parser.FromTableSourceNode.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 38 of file FromTableSourceNode.cs.

38  {
39  if (node is ObjectNameNode) {
40  TableName = (ObjectNameNode)node;
41  } else if (node.NodeName == "select_as_opt") {
42  Alias = (IdentifierNode)node.ChildNodes.FirstOrDefault();
43  }
44 
45  return base.OnChildNode(node);
46  }
ObjectNameNode TableName
Gets the name of the table that is set as source of a query.
IEnumerable< ISqlNode > ChildNodes
Gets an immutable list of nodes, children of the current node.
Definition: SqlNode.cs:55

Property Documentation

IdentifierNode Deveel.Data.Sql.Parser.FromTableSourceNode.Alias
getprivate set

Definition at line 30 of file FromTableSourceNode.cs.

ObjectNameNode Deveel.Data.Sql.Parser.FromTableSourceNode.TableName
getprivate set

Gets the name of the table that is set as source of a query.

Definition at line 35 of file FromTableSourceNode.cs.


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