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.SelectItemNode Class Reference

A single item selected within a query node tree. More...

Inheritance diagram for Deveel.Data.Sql.Parser.SelectItemNode:
Deveel.Data.Sql.Parser.SqlNode Deveel.Data.Sql.Parser.ISqlNode

Protected Member Functions

override void OnNodeInit ()
 After the initialization of the node from the parser, this method is invoked to let the specific initialization to occur. More...
 
- Protected Member Functions inherited from Deveel.Data.Sql.Parser.SqlNode
virtual 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...
 

Package Functions

 SelectItemNode ()
 

Properties

ObjectNameNode Name [get, private set]
 Gets the name of the item selected, if the kind of item selected is an object name (variable, column, etc.). More...
 
IExpressionNode Expression [get, private set]
 Gets an expression to be returned in the result of the selection, if the item is set to be an expression. More...
 
IdentifierNode Alias [get, private set]
 Gets an optional name that will uniquely identify the selected item within the query context. 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...
 

Additional Inherited Members

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

Detailed Description

A single item selected within a query node tree.

Definition at line 24 of file SelectItemNode.cs.

Constructor & Destructor Documentation

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

Definition at line 25 of file SelectItemNode.cs.

25  {
26  }

Member Function Documentation

override void Deveel.Data.Sql.Parser.SelectItemNode.OnNodeInit ( )
inlineprotectedvirtual

After the initialization of the node from the parser, this method is invoked to let the specific initialization to occur.

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

Definition at line 46 of file SelectItemNode.cs.

46  {
47  Expression = ChildNodes.OfType<IExpressionNode>().FirstOrDefault();
48  Name = ChildNodes.OfType<ObjectNameNode>().FirstOrDefault();
49 
50  var aliasNode = this.FindByName("select_as_opt");
51  if (aliasNode != null)
52  Alias = aliasNode.FindNode<IdentifierNode>();
53  }
IdentifierNode Alias
Gets an optional name that will uniquely identify the selected item within the query context...
IEnumerable< ISqlNode > ChildNodes
Gets an immutable list of nodes, children of the current node.
Definition: SqlNode.cs:55
ObjectNameNode Name
Gets the name of the item selected, if the kind of item selected is an object name (variable...
IExpressionNode Expression
Gets an expression to be returned in the result of the selection, if the item is set to be an express...

Property Documentation

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

Gets an optional name that will uniquely identify the selected item within the query context.

Definition at line 44 of file SelectItemNode.cs.

IExpressionNode Deveel.Data.Sql.Parser.SelectItemNode.Expression
getprivate set

Gets an expression to be returned in the result of the selection, if the item is set to be an expression.

Definition at line 38 of file SelectItemNode.cs.

ObjectNameNode Deveel.Data.Sql.Parser.SelectItemNode.Name
getprivate set

Gets the name of the item selected, if the kind of item selected is an object name (variable, column, etc.).

Definition at line 32 of file SelectItemNode.cs.


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