public class CountNode extends AggregateNode
Purpose: Model a COUNT
Responsibilities:
left, right, shouldGenerateExpression| Constructor and Description |
|---|
CountNode() |
| Modifier and Type | Method and Description |
|---|---|
protected Expression |
addAggregateExression(Expression expr)
INTERNAL
|
void |
applyToQuery(ObjectLevelReadQuery theQuery,
GenerationContext context)
INTERNAL
Apply this node to the passed query
|
java.lang.String |
getAsString()
INTERNAL
Get the string representation of this node.
|
boolean |
isCountNode()
INTERNAL
Is this node a CountNode
|
void |
validate(ParseTreeContext context)
INTERNAL
Validate node and calculate its type.
|
generateExpression, isAggregateNode, resolveAttribute, resolveClass, setDistinct, usesDistinctaddToExpression, appendExpression, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAttributeNode, isConstructorNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameterpublic void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
applyToQuery in class Nodepublic void validate(ParseTreeContext context)
protected Expression addAggregateExression(Expression expr)
addAggregateExression in class AggregateNodepublic boolean isCountNode()
isCountNode in class Nodepublic java.lang.String getAsString()
getAsString in class Node