|
string | ObjectName [get, private set] |
|
IEnumerable< PrivilegeNode > | Privileges [get, private set] |
|
IEnumerable< string > | Grantees [get, private set] |
|
bool | WithGrant [get, private set] |
|
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< ISqlNode > | ChildNodes [get, private set] |
| Gets an immutable list of nodes, children of the current node. More...
|
|
IEnumerable< Token > | Tokens [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] |
|
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< ISqlNode > | ChildNodes [get] |
| Gets a read-only enumeration of the children nodes, if any. More...
|
|
IEnumerable< Token > | Tokens [get] |
| Gets an enumeration of the tokens composing the this node. More...
|
|
Definition at line 25 of file GrantStatementNode.cs.
override void Deveel.Data.Sql.Parser.GrantStatementNode.BuildStatement |
( |
StatementBuilder |
builder | ) |
|
|
inlineprotectedvirtual |
void Deveel.Data.Sql.Parser.GrantStatementNode.GetGrantees |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
void Deveel.Data.Sql.Parser.GrantStatementNode.GetPrivileges |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
Definition at line 57 of file GrantStatementNode.cs.
60 foreach (var childNode
in node.ChildNodes) {
61 if (childNode is SqlKeyNode) {
62 if (((SqlKeyNode) childNode).Text.Equals(
"ALL", StringComparison.OrdinalIgnoreCase)) {
64 }
else if (!((SqlKeyNode) childNode).Text.Equals(
"PRIVILEGES", StringComparison.OrdinalIgnoreCase)) {
65 throw new InvalidOperationException();
67 }
else if (childNode.NodeName.Equals(
"priv_list")) {
68 Privileges = childNode.ChildNodes.OfType<PrivilegeNode>();
void Deveel.Data.Sql.Parser.GrantStatementNode.GetWithGrant |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
override ISqlNode Deveel.Data.Sql.Parser.GrantStatementNode.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
-
node | The 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 34 of file GrantStatementNode.cs.
35 if (node is ObjectNameNode) {
37 }
else if (node.NodeName.Equals(
"object_priv")) {
39 }
else if (node.NodeName.Equals(
"distribution_list")) {
41 }
else if (node.NodeName.Equals(
"with_grant_opt")) {
45 return base.OnChildNode(node);
void GetWithGrant(ISqlNode node)
void GetGrantees(ISqlNode node)
void GetPrivileges(ISqlNode node)
static Privileges Deveel.Data.Sql.Parser.GrantStatementNode.ParsePrivilege |
( |
string |
privName | ) |
|
|
inlinestaticprivate |
Definition at line 86 of file GrantStatementNode.cs.
90 throw new InvalidOperationException(
String.Format(
"Invalid privilege name '{0}' specified.", privName));
A long string in the system.
IEnumerable<string> Deveel.Data.Sql.Parser.GrantStatementNode.Grantees |
|
getprivate set |
string Deveel.Data.Sql.Parser.GrantStatementNode.ObjectName |
|
getprivate set |
IEnumerable<PrivilegeNode> Deveel.Data.Sql.Parser.GrantStatementNode.Privileges |
|
getprivate set |
bool Deveel.Data.Sql.Parser.GrantStatementNode.WithGrant |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Parser/GrantStatementNode.cs