org.outerj.grouping.functions
Class SummaryExpressionContextWrapper
java.lang.Object
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegateExpressionContext
protected ExpressionContext delegateExpressionContext
currentRow
protected int currentRow
table
protected Table table
startRow
protected int startRow
endRow
protected int endRow
SummaryExpressionContextWrapper
public SummaryExpressionContextWrapper(ExpressionContext delegateExpressionContext)
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)