import org.apache.poi.ss.formula.EvaluationCell;
import org.apache.poi.ss.formula.EvaluationSheet;
+import org.apache.poi.util.Internal;
/**
* HSSF wrapper for a sheet under evaluation
*/
+@Internal
final class HSSFEvaluationSheet implements EvaluationSheet {
private final HSSFSheet _hs;
}
return new HSSFEvaluationCell(cell, this);
}
-
+
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationSheet
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
// nothing to do
import org.apache.poi.ss.usermodel.Table;
import org.apache.poi.ss.util.AreaReference;
import org.apache.poi.ss.util.CellReference;
+import org.apache.poi.util.Internal;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
/**
* Internal POI use only
*/
+@Internal
public final class HSSFEvaluationWorkbook implements FormulaRenderingWorkbook, EvaluationWorkbook, FormulaParsingWorkbook {
private static POILogger logger = POILogFactory.getLogger(HSSFEvaluationWorkbook.class);
private final HSSFWorkbook _uBook;
_iBook = book.getWorkbook();
}
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationWorkbook
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
// nothing to do
package org.apache.poi.ss.formula;
+import org.apache.poi.util.Internal;
+
/**
* Abstracts a sheet for the purpose of formula evaluation.<br/>
*
*
* @author Josh Micich
*/
+@Internal
public interface EvaluationSheet {
/**
*
* @see WorkbookEvaluator#clearAllCachedResultValues()
* @see EvaluationWorkbook#clearAllCachedResultValues()
+ * @since POI 3.15 beta 3
*/
public void clearAllCachedResultValues();
}
import org.apache.poi.ss.formula.ptg.NameXPtg;
import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.ss.formula.udf.UDFFinder;
+import org.apache.poi.util.Internal;
/**
* Abstracts a workbook for the purpose of formula evaluation.<br/>
*
* @author Josh Micich
*/
+@Internal
public interface EvaluationWorkbook {
String getSheetName(int sheetIndex);
/**
* Propagated from {@link WorkbookEvaluator#clearAllCachedResultValues()} to clear locally cached data.
* Implementations must call the same method on all referenced {@link EvaluationSheet} instances, as well as clearing local caches.
* @see WorkbookEvaluator#clearAllCachedResultValues()
+ *
+ * @since POI 3.15 beta 3
*/
public void clearAllCachedResultValues();
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellReference;
+import org.apache.poi.util.Internal;
/**
* Represents a sheet being used for forked evaluation. Initially, objects of this class contain
* only the cells from the master workbook. By calling {@link #getOrCreateUpdatableCell(int, int)},
* the master cell object is logically replaced with a {@link ForkedEvaluationCell} instance, which
- * will be used in all subsequent evaluations.
+ * will be used in all subsequent evaluations.<br/>
+ *
+ * For POI internal use only
*
* @author Josh Micich
*/
+@Internal
final class ForkedEvaluationSheet implements EvaluationSheet {
private final EvaluationSheet _masterSheet;
/* (non-Javadoc)
* leave the map alone, if it needs resetting, reusing this class is probably a bad idea.
* @see org.apache.poi.ss.formula.EvaluationSheet#clearAllCachedResultValues()
+ *
+ * @since POI 3.15 beta 3
*/
@Override
public void clearAllCachedResultValues() {
import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.ss.formula.udf.UDFFinder;
import org.apache.poi.ss.usermodel.Workbook;
+import org.apache.poi.util.Internal;
/**
* Represents a workbook being used for forked evaluation. Most operations are delegated to the
* shared master workbook, except those that potentially involve cell values that may have been
- * updated after a call to {@link #getOrCreateUpdatableCell(String, int, int)}.
+ * updated after a call to {@link #getOrCreateUpdatableCell(String, int, int)}.<br/>
+ *
+ * For POI internal use only
*/
+@Internal
final class ForkedEvaluationWorkbook implements EvaluationWorkbook {
private final EvaluationWorkbook _masterBook;
/* (non-Javadoc)
* leave the map alone, if it needs resetting, reusing this class is probably a bad idea.
* @see org.apache.poi.ss.formula.EvaluationSheet#clearAllCachedResultValues()
+ *
+ * @since POI 3.15 beta 3
*/
@Override
public void clearAllCachedResultValues() {
import org.apache.poi.ss.formula.EvaluationCell;
import org.apache.poi.ss.formula.EvaluationSheet;
+import org.apache.poi.util.Internal;
/**
* SXSSF wrapper for a sheet under evaluation
*/
+@Internal
final class SXSSFEvaluationSheet implements EvaluationSheet {
private final SXSSFSheet _xs;
return new SXSSFEvaluationCell(cell, this);
}
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationSheet
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
// nothing to do
import org.apache.poi.ss.formula.FormulaType;
import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.xssf.usermodel.BaseXSSFEvaluationWorkbook;
+import org.apache.poi.util.Internal;
/**
* SXSSF wrapper around the SXSSF and XSSF workbooks
*/
+@Internal
public final class SXSSFEvaluationWorkbook extends BaseXSSFEvaluationWorkbook {
private final SXSSFWorkbook _uBook;
import org.apache.poi.ss.util.AreaReference;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.NotImplemented;
+import org.apache.poi.util.Internal;
import org.apache.poi.xssf.model.ExternalLinksTable;
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDefinedName;
/**
* Internal POI use only - parent of XSSF and SXSSF evaluation workbooks
*/
+@Internal
public abstract class BaseXSSFEvaluationWorkbook implements FormulaRenderingWorkbook, EvaluationWorkbook, FormulaParsingWorkbook {
protected final XSSFWorkbook _uBook;
_uBook = book;
}
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationWorkbook
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
_tableCache = null;
import org.apache.poi.ss.formula.EvaluationSheet;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.util.Internal;
/**
* XSSF wrapper for a sheet under evaluation
*/
+@Internal
final class XSSFEvaluationSheet implements EvaluationSheet {
private final XSSFSheet _xs;
return _xs;
}
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationWorkbook
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
_cellCache = null;
import org.apache.poi.ss.formula.FormulaParser;
import org.apache.poi.ss.formula.FormulaType;
import org.apache.poi.ss.formula.ptg.Ptg;
+import org.apache.poi.util.Internal;
/**
* Internal POI use only
*/
+@Internal
public final class XSSFEvaluationWorkbook extends BaseXSSFEvaluationWorkbook {
private XSSFEvaluationSheet[] _sheetCache;
super(book);
}
+ /* (non-JavaDoc), inherit JavaDoc from EvaluationSheet
+ * @since POI 3.15 beta 3
+ */
@Override
public void clearAllCachedResultValues() {
super.clearAllCachedResultValues();