org.outerj.grouping.functions
Class SummaryExpressionContextWrapper

java.lang.Object
  extended byorg.outerj.grouping.functions.SummaryExpressionContextWrapper
All Implemented Interfaces:
ExpressionContext

public class SummaryExpressionContextWrapper
extends java.lang.Object
implements ExpressionContext

Implementation and extension of ExpressionContext that keeps track of the startRow/endRow of the current group and the "current row" for summary functions.


Field Summary
protected  int currentRow
           
protected  ExpressionContext delegateExpressionContext
           
protected  int endRow
           
protected  int startRow
           
protected  Table table
           
 
Constructor Summary
SummaryExpressionContextWrapper(ExpressionContext delegateExpressionContext)
           
 
Method Summary
 java.lang.Object get(java.lang.String name)
          Get "something" with a certain name.
 int getCurrentRow()
           
 int getEndRow()
           
 int getStartRow()
           
 Table getTable()
           
 java.lang.Object resolveVariable(java.lang.String name)
          Returns the value of the named variable, or null if there's no variable by that name.
 void setCurrentRow(int row)
           
 void setEndRow(int endRow)
           
 void setStartRow(int startRow)
           
 void setTable(Table table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegateExpressionContext

protected ExpressionContext delegateExpressionContext

currentRow

protected int currentRow

table

protected Table table

startRow

protected int startRow

endRow

protected int endRow
Constructor Detail

SummaryExpressionContextWrapper

public SummaryExpressionContextWrapper(ExpressionContext delegateExpressionContext)
Method Detail

resolveVariable

public java.lang.Object resolveVariable(java.lang.String name)
Description copied from interface: ExpressionContext
Returns the value of the named variable, or null if there's no variable by that name.

Specified by:
resolveVariable in interface ExpressionContext

get

public java.lang.Object get(java.lang.String name)
Description copied from interface: ExpressionContext
Get "something" with a certain name. This could be used if functions need access to external resources, but is not used by the default function library.

Specified by:
get in interface ExpressionContext

setCurrentRow

public void setCurrentRow(int row)

getCurrentRow

public int getCurrentRow()

getTable

public Table getTable()

setTable

public void setTable(Table table)

getStartRow

public int getStartRow()

setStartRow

public void setStartRow(int startRow)

getEndRow

public int getEndRow()

setEndRow

public void setEndRow(int endRow)