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
- Direct Known Subclasses:
UnionEval
public class CacheAreaEval extends AreaEvalBase
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
Constructors Constructor Description CacheAreaEval(int firstRow, int firstColumn, int lastRow, int lastColumn, ValueEval[] values)
CacheAreaEval(AreaI ptg, ValueEval[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TwoDEval
getColumn(int columnIndex)
ValueEval
getRelativeValue(int relativeRowIndex, int relativeColumnIndex)
ValueEval
getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
TwoDEval
getRow(int rowIndex)
boolean
isHidden(int rowIndex, int columnIndex)
AreaEval
offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Creates an AreaEval offset by a relative amount from the upper left cell of this areaString
toString()
-
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, isFirstColRelative, isFirstRowRelative, isLastColRelative, isLastRowRelative, isRow, isRowHidden, isSubTotal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.TwoDEval
isFiltered
-
-
-
-
Method Detail
-
getRelativeValue
public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex)
- 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
public ValueEval getRelativeValue(int sheetIndex, int relativeRowIndex, int relativeColumnIndex)
- Specified by:
getRelativeValue
in classAreaEvalBase
-
offset
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx)
Description copied from interface:AreaEval
Creates an AreaEval offset by a relative amount from the upper left cell of this area
-
getRow
public TwoDEval getRow(int rowIndex)
- Parameters:
rowIndex
- relative row index (zero based)- Returns:
- a single row TwoDEval
-
getColumn
public TwoDEval getColumn(int columnIndex)
- Parameters:
columnIndex
- relative column index (zero based)- Returns:
- a single column TwoDEval
-
isHidden
public boolean isHidden(int rowIndex, int columnIndex)
- Returns:
- true if the cell at row and col is hidden
-
-