|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.poi.xssf.usermodel.BaseXSSFFormulaEvaluator
public abstract class BaseXSSFFormulaEvaluator
Internal POI use only - parent of XSSF and SXSSF formula evaluators
| Constructor Summary | |
|---|---|
protected |
BaseXSSFFormulaEvaluator(WorkbookEvaluator bookEvaluator)
|
| Method Summary | |
|---|---|
WorkbookEvaluator |
_getWorkbookEvaluator()
|
void |
clearAllCachedResultValues()
Should be called whenever there are major changes (e.g. |
protected void |
doEvaluateInCell(Cell cell)
If cell contains formula, it evaluates the formula, and puts the formula result back into the cell, in place of the old formula. |
CellValue |
evaluate(Cell cell)
If cell contains a formula, the formula is evaluated and returned, else the CellValue simply copies the appropriate cell value from the cell and also its cell type. |
int |
evaluateFormulaCell(Cell cell)
If cell contains formula, it evaluates the formula, and saves the result of the formula. |
void |
notifyDeleteCell(Cell cell)
|
void |
notifySetFormula(Cell cell)
|
void |
notifyUpdateCell(Cell cell)
|
void |
setDebugEvaluationOutputForNextEval(boolean value)
|
void |
setIgnoreMissingWorkbooks(boolean ignore)
|
void |
setupReferencedWorkbooks(java.util.Map<java.lang.String,FormulaEvaluator> evaluators)
|
protected abstract EvaluationCell |
toEvaluationCell(Cell cell)
Turns a XSSFCell / SXSSFCell into a XSSFEvaluationCell |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.poi.ss.usermodel.FormulaEvaluator |
|---|
evaluateAll, evaluateInCell |
| Constructor Detail |
|---|
protected BaseXSSFFormulaEvaluator(WorkbookEvaluator bookEvaluator)
| Method Detail |
|---|
public void clearAllCachedResultValues()
clearAllCachedResultValues in interface FormulaEvaluatorpublic void notifySetFormula(Cell cell)
notifySetFormula in interface FormulaEvaluatorpublic void notifyDeleteCell(Cell cell)
notifyDeleteCell in interface FormulaEvaluatorpublic void notifyUpdateCell(Cell cell)
notifyUpdateCell in interface FormulaEvaluatorpublic CellValue evaluate(Cell cell)
evaluate in interface FormulaEvaluatorcell - public int evaluateFormulaCell(Cell cell)
int evaluatedCellType = evaluator.evaluateFormulaCell(cell);Be aware that your cell will hold both the formula, and the result. If you want the cell replaced with the result of the formula, use
evaluate(org.apache.poi.ss.usermodel.Cell) }
evaluateFormulaCell in interface FormulaEvaluatorcell - The cell to evaluate
protected void doEvaluateInCell(Cell cell)
protected abstract EvaluationCell toEvaluationCell(Cell cell)
public void setupReferencedWorkbooks(java.util.Map<java.lang.String,FormulaEvaluator> evaluators)
setupReferencedWorkbooks in interface FormulaEvaluatorpublic WorkbookEvaluator _getWorkbookEvaluator()
_getWorkbookEvaluator in interface WorkbookEvaluatorProviderpublic void setIgnoreMissingWorkbooks(boolean ignore)
setIgnoreMissingWorkbooks in interface FormulaEvaluatorpublic void setDebugEvaluationOutputForNextEval(boolean value)
setDebugEvaluationOutputForNextEval in interface FormulaEvaluator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||