Module query/normalizer
A query normalizer capable of converting a query AST back into
a query string
Normalizes an aggregation node
Parameters
Aggregation |
node |
The node |
Returns
String |
The string representation |
Normalizes the "between" condition node
Parameters
BetweenCondition |
node |
The node |
Returns
String |
The string representation |
Normalizes the comparison node
Parameters
Comparison |
node |
The comparison node |
Returns
String |
The string representation |
Normalizes the condition node
Parameters
Condition |
node |
The condition |
Returns
String |
The string representation |
Normalizes the list of conditions
Parameters
ConditionList |
node |
The node |
Returns
String |
The string representation |
Normalizer.prototype.visitEntity
(node)
Returns the name of the entity node
Parameters
Entity |
node |
The entity node |
Returns
String |
The name of the entity |
Normalizes the "exists" condition node
Parameters
ExistsCondition |
node |
The "exists" condition |
Returns
String |
The string representation |
Normalizes the expression node
Returns
String |
The string representation |
Normalizer.prototype.visitFactor
(node)
Normalizes the factor node
Parameters
Summand |
node |
The factor node |
Returns
String |
The factor node as string |
Normalizes the "from" clause node
Returns
String |
The string representation |
Normalizes the "group by" clause node
Parameters
GroupByClause |
node |
The node |
Returns
String |
The string representation |
Normalizes the "having" clause node
Parameters
HavingClause |
node |
The node |
Returns
String |
The string representation |
Normalizer.prototype.visitIdent
(node)
Returns the fully qualified representation of the ident node
Parameters
Ident |
node |
The ident node |
Returns
String |
The string representation (`.`) |
Normalizes the "(not) in" condition node
Parameters
InCondition |
node |
The node |
Returns
String |
The string representation |
Normalizes the "inner join" node
Returns
String |
The string representation |
Normalizes the "is (not) null" condition node
Parameters
IsNullCondition |
node |
The node |
Returns
String |
The string representation |
Normalizes the "join" clause node
Returns
String |
The string representation |
Normalizes the "like" condition node
Parameters
LikeCondition |
node |
The node |
Returns
String |
The string representation |
Normalizes the NotCondition node
Parameters
NotCondition |
node |
The "not" condition |
Returns
String |
The string representation |
Normalizer.prototype.visitOrderBy
(node)
Normalizes the "order by" node
Returns
String |
The string representation |
Normalizes the "order by" clause node
Parameters
OrderByClause |
node |
The node |
Returns
String |
The string representation |
Normalizes the "outer join" clause node
Returns
String |
The string representation |
Returns the value of the parameter value, preceded by a colon.
Parameters
ParameterValue |
node |
The parameter value node |
Returns
String |
The parameter value as string |
Normalizes the range clause node
Parameters
RangeClause |
node |
The node |
Returns
String |
The string representation |
Normalizer.prototype.visitSelect
(node)
Normalizes the select query
Returns
String |
The string representation |
Normalizes the select clause node
Parameters
SelectClause |
node |
The node |
Returns
String |
The string representation |
Normalizes the select entity node
Parameters
SelectEntity |
node |
The node |
Returns
String |
The string representation |
Normalizes the select expression node
Parameters
SelectExpression |
node |
The node |
Returns
String |
The string representation |
Normalizer.prototype.visitSummand
(node)
Normalizes the summand node
Parameters
Summand |
node |
The summand node |
Returns
String |
The summand node as string |
Normalizer.prototype.visitValue
(node)
Returns the value of a value node
Returns
String |
The value of the node |
Normalizes the "where" clause node
Parameters
WhereClause |
node |
The node |
Returns
String |
The string representation |