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

Represents a composed name for an object within the system. More...

Inheritance diagram for Deveel.Data.Sql.Parser.ObjectNameNode:
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

 ObjectNameNode ()
 

Properties

string Name [get, private set]
 The full object name as composed from the input SQL string analyzed. 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

Represents a composed name for an object within the system.

This node acts as a reference to any object within a database system, such as TABLE, TRIGGER, COLUMN, etc.

Like the system object ObjectName that this ISqlNode encapsulates, the composition of the object is complex and can be formed by multiple parts (eg. schema.table.column, schema.table, table.*).

Definition at line 32 of file ObjectNameNode.cs.

Constructor & Destructor Documentation

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

Definition at line 33 of file ObjectNameNode.cs.

33  {
34  }

Member Function Documentation

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

43  {
44  var idNode = (IdentifierNode) node;
45 
46  if (Name != null) {
47  Name = String.Format("{0}.{1}", Name, idNode.Text);
48  } else {
49  Name = idNode.Text;
50  }
51 
52  return base.OnChildNode(node);
53  }
A long string in the system.
string Name
The full object name as composed from the input SQL string analyzed.

Property Documentation

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

The full object name as composed from the input SQL string analyzed.

See also
ObjectName

Definition at line 40 of file ObjectNameNode.cs.


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