Class XSSFFormulaEvaluator

    • Method Detail

      • create

        public static XSSFFormulaEvaluator create​(XSSFWorkbook workbook,
                                                  IStabilityClassifier stabilityClassifier,
                                                  UDFFinder udfFinder)
        Parameters:
        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)
      • notifySetFormula

        public void notifySetFormula​(Cell cell)
      • notifyDeleteCell

        public void notifyDeleteCell​(Cell cell)
      • notifyUpdateCell

        public void notifyUpdateCell​(Cell cell)
      • evaluateAllFormulaCells

        public static void evaluateAllFormulaCells​(XSSFWorkbook wb)
        Loops over all cells in all sheets of the supplied workbook. For cells that contain formulas, their formulas are evaluated, and the results are saved. These cells remain as formula cells. For cells that do not contain formulas, no changes are made. This is a helpful wrapper around looping over all cells, and calling evaluateFormulaCell on each one.
      • evaluateAll

        public void evaluateAll()
        Loops over all cells in all sheets of the supplied workbook. For cells that contain formulas, their formulas are evaluated, and the results are saved. These cells remain as formula cells. For cells that do not contain formulas, no changes are made. This is a helpful wrapper around looping over all cells, and calling evaluateFormulaCell on each one.