org.outerj.grouping
Class CalculateSummariesVisitor
java.lang.Object
org.outerj.grouping.CalculateSummariesVisitor
- All Implemented Interfaces:
- GroupVisitor
- public class CalculateSummariesVisitor
- extends java.lang.Object
- implements GroupVisitor
This visitor will calculate the summaries for each group. In case an error
occurs during evaluation of a summary-expression, then these errors are
reported to an ErrorListener set with setErrorListener(org.outerj.grouping.ErrorListener)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupNestingLevel
protected int groupNestingLevel
table
protected Table table
groupDefinitions
protected GroupDefinition[] groupDefinitions
contextWrapper
protected SummaryExpressionContextWrapper contextWrapper
errorListener
protected ErrorListener errorListener
CalculateSummariesVisitor
public CalculateSummariesVisitor(Table table,
ExpressionContext expressionContext,
GroupDefinition[] groupDefinitions)
startVisitGroup
public void startVisitGroup(Group group)
throws java.lang.Exception
- Specified by:
startVisitGroup
in interface GroupVisitor
- Throws:
java.lang.Exception
endVisitGroup
public void endVisitGroup(Group group)
throws java.lang.Exception
- Specified by:
endVisitGroup
in interface GroupVisitor
- Throws:
java.lang.Exception
setErrorListener
public void setErrorListener(ErrorListener errorListener)
reportError
protected void reportError(java.lang.String message,
java.lang.Exception e)