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

A node containing a constant literal string passed within an SQL command. More...

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

 StringLiteralNode ()
 

Properties

string Value [get, private set]
 Gets the literal string value. 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 node containing a constant literal string passed within an SQL command.

Definition at line 25 of file StringLiteralNode.cs.

Constructor & Destructor Documentation

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

Definition at line 26 of file StringLiteralNode.cs.

26  {
27  }

Member Function Documentation

override void Deveel.Data.Sql.Parser.StringLiteralNode.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 35 of file StringLiteralNode.cs.

35  {
36  var text = Tokens.First().Text;
37  if (!String.IsNullOrEmpty(text)) {
38  if (text[0] == '\'' &&
39  text[text.Length - 1] == '\'')
40  text = text.Substring(1, text.Length - 2);
41  }
42 
43  Value = text;
44  base.OnNodeInit();
45  }
A long string in the system.
IEnumerable< Token > Tokens
Gets an immutable list of Token that represent the source of this node.
Definition: SqlNode.cs:63
string Value
Gets the literal string value.

Property Documentation

string Deveel.Data.Sql.Parser.StringLiteralNode.Value
getprivate set

Gets the literal string value.

Definition at line 32 of file StringLiteralNode.cs.


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