Package org.apache.poi.ss.formula
Class CacheAreaEval
java.lang.Object
org.apache.poi.ss.formula.eval.AreaEvalBase
org.apache.poi.ss.formula.CacheAreaEval
- All Implemented Interfaces:
AreaEval
,ValueEval
,SheetRange
,ThreeDEval
,TwoDEval
- Author:
- Robert Hulbert Provides holding structure for temporary values in arrays during the evaluation process. As such, Row/Column references do not actually correspond to data in the file.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheAreaEval
(int firstRow, int firstColumn, int lastRow, int lastColumn, ValueEval[] values) CacheAreaEval
(AreaI ptg, ValueEval[] values) -
Method Summary
Modifier and TypeMethodDescriptiongetColumn
(int columnIndex) getRelativeValue
(int relativeRowIndex, int relativeColumnIndex) getRelativeValue
(int sheetIndex, int relativeRowIndex, int relativeColumnIndex) getRow
(int rowIndex) offset
(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) Creates anAreaEval
offset by a relative amount from from the upper left cell of this areatoString()
Methods inherited from class org.apache.poi.ss.formula.eval.AreaEvalBase
contains, containsColumn, containsRow, getAbsoluteValue, getFirstColumn, getFirstRow, getFirstSheetIndex, getHeight, getLastColumn, getLastRow, getLastSheetIndex, getValue, getValue, getWidth, isColumn, isRow, isSubTotal
-
Constructor Details
-
CacheAreaEval
-
CacheAreaEval
public CacheAreaEval(int firstRow, int firstColumn, int lastRow, int lastColumn, ValueEval[] values)
-
-
Method Details
-
getRelativeValue
- Specified by:
getRelativeValue
in interfaceAreaEval
- Specified by:
getRelativeValue
in classAreaEvalBase
- Returns:
- the ValueEval from within this area at the specified relativeRowIndex and
relativeColumnIndex. Never
null
(possiblyBlankEval
). The specified indexes should relative to the top left corner of this area.
-
getRelativeValue
- Specified by:
getRelativeValue
in classAreaEvalBase
-
offset
Description copied from interface:AreaEval
Creates anAreaEval
offset by a relative amount from from the upper left cell of this area -
getRow
- Parameters:
rowIndex
- relative row index (zero based)- Returns:
- a single row
TwoDEval
-
getColumn
- Parameters:
columnIndex
- relative column index (zero based)- Returns:
- a single column
TwoDEval
-
toString
-