Purpose: Model a SUM
Responsibilities:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Expression | addAggregateExression(Expression expr)
Implements abstract org. |
| public void | applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context)
Overrides org. |
| protected Class | calculateReturnType(GenerationContext context)
INTERNAL This method calculates the return type of the SUM operation. |
| protected Object | calculateReturnType(Object argType, TypeHelper helper)
INTERNAL Helper method to calculate the return type of the SUM operation. |
| public String | getAsString()
Overrides org. |
| public void | validate(ParseTreeContext context)
Overrides org. |
| SumNode | back to summary |
|---|---|
| public SumNode() | |
| addAggregateExression | back to summary |
|---|---|
| protected Expression addAggregateExression(Expression expr) Implements abstract org. INTERNAL
| |
| applyToQuery | back to summary |
|---|---|
| public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) Overrides org. INTERNAL Apply this node to the passed query
| |
| calculateReturnType | back to summary |
|---|---|
| protected Class INTERNAL This method calculates the return type of the SUM operation. | |
| calculateReturnType | back to summary |
|---|---|
| protected Object calculateReturnType(Object argType, TypeHelper helper) INTERNAL Helper method to calculate the return type of the SUM operation. | |
| getAsString | back to summary |
|---|---|
| public String getAsString() Overrides org. INTERNAL Get the string representation of this node.
| |
| validate | back to summary |
|---|---|
| public void validate(ParseTreeContext context) Overrides org. INTERNAL Validate node and calculate its type.
| |