public final class XSSFFormulaEvaluator extends BaseXSSFFormulaEvaluator
For performance reasons, this class keeps a cache of all previously calculated intermediate
cell values. Be sure to call BaseFormulaEvaluator.clearAllCachedResultValues() if any workbook cells are changed between
calls to evaluate~ methods on this class.
_bookEvaluator| Modifier | Constructor and Description |
|---|---|
|
XSSFFormulaEvaluator(XSSFWorkbook workbook) |
protected |
XSSFFormulaEvaluator(XSSFWorkbook workbook,
WorkbookEvaluator bookEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
static XSSFFormulaEvaluator |
create(XSSFWorkbook workbook,
IStabilityClassifier stabilityClassifier,
UDFFinder udfFinder) |
void |
evaluateAll()
Loops over all cells in all sheets of the supplied
workbook.
|
static void |
evaluateAllFormulaCells(XSSFWorkbook wb)
Loops over all cells in all sheets of the supplied
workbook.
|
XSSFCell |
evaluateInCell(Cell cell) |
void |
notifyDeleteCell(Cell cell) |
void |
notifySetFormula(Cell cell) |
void |
notifyUpdateCell(Cell cell) |
protected EvaluationCell |
toEvaluationCell(Cell cell)
Turns a XSSFCell into a XSSFEvaluationCell
|
createRichTextString, evaluateFormulaCellValue, setCellType_getWorkbookEvaluator, clearAllCachedResultValues, evaluate, evaluateAllFormulaCells, evaluateAllFormulaCells, evaluateFormulaCell, getEvaluationWorkbook, setCellType, setCellValue, setDebugEvaluationOutputForNextEval, setIgnoreMissingWorkbooks, setupEnvironment, setupReferencedWorkbookspublic XSSFFormulaEvaluator(XSSFWorkbook workbook)
protected XSSFFormulaEvaluator(XSSFWorkbook workbook, WorkbookEvaluator bookEvaluator)
public static XSSFFormulaEvaluator create(XSSFWorkbook workbook, IStabilityClassifier stabilityClassifier, UDFFinder udfFinder)
stabilityClassifier - used to optimise caching performance. Pass null
for the (conservative) assumption that any cell may have its definition changed after
evaluation begins.udfFinder - pass null for default (AnalysisToolPak only)public void notifySetFormula(Cell cell)
public void notifyDeleteCell(Cell cell)
public void notifyUpdateCell(Cell cell)
public static void evaluateAllFormulaCells(XSSFWorkbook wb)
public XSSFCell evaluateInCell(Cell cell)
evaluateInCell in interface FormulaEvaluatorevaluateInCell in class BaseFormulaEvaluatorpublic void evaluateAll()
protected EvaluationCell toEvaluationCell(Cell cell)
toEvaluationCell in class BaseXSSFFormulaEvaluator