Represents an expression that evaluates between two other expressions.
More...
|
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...
|
|
virtual void | OnNodeInit () |
| After the initialization of the node from the parser, this method is invoked to let the specific initialization to occur. More...
|
|
|
IExpressionNode | Left [get, private set] |
| Gets the left side argument of the expression. More...
|
|
IExpressionNode | Right [get, private set] |
| Gets the right side argument of the expression. More...
|
|
bool | IsAll [get, private set] |
| Gets a boolean value indicating if the expression is the special case of ALL . More...
|
|
bool | IsAny [get, private set] |
| Gets a boolean value indicating if the expression is the special case of ANY . More...
|
|
string | Operator [get, private set] |
| Gets the binary operator that will be used to evaluate the final result. More...
|
|
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...
|
|
Represents an expression that evaluates between two other expressions.
Definition at line 25 of file SqlBinaryExpressionNode.cs.
void Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.GetAnyAllOp |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
Definition at line 100 of file SqlBinaryExpressionNode.cs.
101 var sb =
new StringBuilder();
102 foreach (var childNode
in node.ChildNodes) {
103 if (childNode is SqlKeyNode) {
104 var anyOrAll = ((SqlKeyNode) childNode).Text;
105 if (
String.Equals(anyOrAll,
"ALL", StringComparison.OrdinalIgnoreCase)) {
107 }
else if (
String.Equals(anyOrAll,
"ANY", StringComparison.OrdinalIgnoreCase)) {
110 }
else if (childNode.NodeName ==
"binary_op_simple") {
111 var op = childNode.ChildNodes.First();
112 sb.Append(((SqlKeyNode) op).Text);
A long string in the system.
string Operator
Gets the binary operator that will be used to evaluate the final result.
bool IsAll
Gets a boolean value indicating if the expression is the special case of ALL.
bool IsAny
Gets a boolean value indicating if the expression is the special case of ANY.
void Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.GetLogicalOp |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
Definition at line 88 of file SqlBinaryExpressionNode.cs.
89 var sb =
new StringBuilder();
90 foreach (var childNode
in node.ChildNodes) {
91 if (childNode is SqlKeyNode) {
92 sb.Append(((SqlKeyNode) childNode).Text);
string Operator
Gets the binary operator that will be used to evaluate the final result.
void Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.GetOperator |
( |
ISqlNode |
node | ) |
|
|
inlineprivate |
Definition at line 73 of file SqlBinaryExpressionNode.cs.
74 var childNode = node.ChildNodes.First();
75 if (childNode.NodeName ==
"binary_op_simple") {
76 var op = childNode.ChildNodes.First();
78 }
else if (childNode.NodeName ==
"logical_op") {
80 }
else if (node.NodeName ==
"any_op" ||
81 node.NodeName ==
"all_op") {
83 }
else if (childNode.NodeName ==
"subquery_op") {
void GetAnyAllOp(ISqlNode node)
void GetLogicalOp(ISqlNode node)
string Operator
Gets the binary operator that will be used to evaluate the final result.
override ISqlNode Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.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 57 of file SqlBinaryExpressionNode.cs.
58 if (node is IExpressionNode) {
60 Left = (IExpressionNode) node;
63 Right = (IExpressionNode) node;
66 }
else if (node.NodeName ==
"binary_op") {
70 return base.OnChildNode(node);
IExpressionNode Right
Gets the right side argument of the expression.
IExpressionNode Left
Gets the left side argument of the expression.
void GetOperator(ISqlNode node)
bool Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.leftSeen |
|
private |
bool Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.IsAll |
|
getprivate set |
bool Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.IsAny |
|
getprivate set |
string Deveel.Data.Sql.Parser.SqlBinaryExpressionNode.Operator |
|
getprivate set |
The documentation for this class was generated from the following file: