Top Description Fields Constructors Methods
org.apache.poi.ss.formula

pack-priv final Class SheetRefEvaluator

extends Object
Class Inheritance
Imports
org.apache.poi.ss.formula.eval.ValueEval, org.apache.poi.ss.formula.ptg.FuncVarPtg, .Ptg, org.apache.poi.ss.usermodel.CellType

Evaluator for cells within a specific Sheet

Field Summary

Modifier and TypeField and Description
private final WorkbookEvaluator
private EvaluationSheet
private final int
private final EvaluationTracker

Constructor Summary

AccessConstructor and Description
public
SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex)

Method Summary

Modifier and TypeMethod and Description
public ValueEval
getEvalForCell(int rowIndex, int columnIndex)

public int

Returns:

The last used row in this sheet
getLastRowNum
()

public int

Returns:

The maximum row number that is possible for the current Spreadsheet version, see org.apache.poi.ss.SpreadsheetVersion#getLastRowIndex()
getMaxRowNum
()

private EvaluationSheet
public String
public boolean

Returns:

true if the row is hidden
isRowHidden
(int
The 0-based row-index to check
rowIndex
)

Used by functions that calculate differently depending on row visibility, like some variations of SUBTOTAL()

public boolean

Returns:

whether cell at rowIndex and columnIndex is a subtotal
isSubTotal
(int
The 0-based row-index to check
rowIndex
,
int
The 0-based column-index to check
columnIndex
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bookEvaluatorback to summary
private final WorkbookEvaluator _bookEvaluator
_sheetback to summary
private EvaluationSheet _sheet
_sheetIndexback to summary
private final int _sheetIndex
_trackerback to summary
private final EvaluationTracker _tracker

Constructor Detail

SheetRefEvaluatorback to summary
public SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex)

Method Detail

getEvalForCellback to summary
public ValueEval getEvalForCell(int rowIndex, int columnIndex)
getLastRowNumback to summary
public int getLastRowNum()
Returns:int

The last used row in this sheet

getMaxRowNumback to summary
public int getMaxRowNum()
Returns:int

The maximum row number that is possible for the current Spreadsheet version, see org.apache.poi.ss.SpreadsheetVersion#getLastRowIndex()

getSheetback to summary
private EvaluationSheet getSheet()
getSheetNameback to summary
public String getSheetName()
isRowHiddenback to summary
public boolean isRowHidden(int rowIndex)

Used by functions that calculate differently depending on row visibility, like some variations of SUBTOTAL()

Parameters
rowIndex:int

The 0-based row-index to check

Returns:boolean

true if the row is hidden

See Also
org.apache.poi.ss.formula.functions.Subtotal
isSubTotalback to summary
public boolean isSubTotal(int rowIndex, int columnIndex)
Parameters
rowIndex:int

The 0-based row-index to check

columnIndex:int

The 0-based column-index to check

Returns:boolean

whether cell at rowIndex and columnIndex is a subtotal

See Also
org.apache.poi.ss.formula.functions.Subtotal