Package org.apache.poi.xssf.usermodel
Class BaseXSSFEvaluationWorkbook
java.lang.Object
org.apache.poi.xssf.usermodel.BaseXSSFEvaluationWorkbook
- All Implemented Interfaces:
EvaluationWorkbook,FormulaParsingWorkbook,FormulaRenderingWorkbook
- Direct Known Subclasses:
SXSSFEvaluationWorkbook,XSSFEvaluationWorkbook
@Internal
public abstract class BaseXSSFEvaluationWorkbook
extends Object
implements FormulaRenderingWorkbook, EvaluationWorkbook, FormulaParsingWorkbook
Internal POI use only - parent of XSSF and SXSSF evaluation workbooks
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.ss.formula.EvaluationWorkbook
EvaluationWorkbook.ExternalName, EvaluationWorkbook.ExternalSheet, EvaluationWorkbook.ExternalSheetRange -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintconvertFromExternSheetIndex(int externSheetIndex) XSSF doesn't use external sheet indexes, so when asked treat it just as a local indexget3DReferencePtg(AreaReference area, SheetIdentifier sheet) get3DReferencePtg(CellReference cell, SheetIdentifier sheet) getExternalName(int externSheetIndex, int externNameIndex) getExternalName(String nameName, String sheetName, int externalWorkbookNumber) getExternalSheet(int externSheetIndex) getExternalSheet(String firstSheetName, String lastSheetName, int externalWorkbookNumber) intgetExternalSheetIndex(String sheetName) intgetExternalSheetIndex(String workbookName, String sheetName) Return EvaluationName wrapper around the matching XSSFName (named range)getNameText(NamePtg namePtg) getNameXPtg(String name, SheetIdentifier sheet) Return an external name (named range, function, user-defined function) PxggetSheetFirstNameByExternSheet(int externSheetIndex) intgetSheetIndex(String sheetName) getSheetLastNameByExternSheet(int externSheetIndex) getSheetName(int sheetIndex) Returns the data table with the given name (case insensitive).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.ss.formula.EvaluationWorkbook
getFormulaTokens, getSheet, getSheetIndex
-
Field Details
-
_uBook
-
-
Constructor Details
-
BaseXSSFEvaluationWorkbook
-
-
Method Details
-
clearAllCachedResultValues
public void clearAllCachedResultValues()- Specified by:
clearAllCachedResultValuesin interfaceEvaluationWorkbook
-
convertFromExternSheetIndex
public int convertFromExternSheetIndex(int externSheetIndex) XSSF doesn't use external sheet indexes, so when asked treat it just as a local index- Specified by:
convertFromExternSheetIndexin interfaceEvaluationWorkbook
-
getExternalSheetIndex
- Specified by:
getExternalSheetIndexin interfaceFormulaParsingWorkbook
-
getName
Return EvaluationName wrapper around the matching XSSFName (named range)- Specified by:
getNamein interfaceEvaluationWorkbook- Specified by:
getNamein interfaceFormulaParsingWorkbook- Parameters:
name- case-aware but case-insensitive named range in workbooksheetIndex- index of sheet if named range scope is limited to one sheet if named range scope is global to the workbook, sheetIndex is -1.- Returns:
- If name is a named range in the workbook, returns EvaluationName corresponding to that named range Returns null if there is no named range with the same name and scope in the workbook
-
getSheetName
- Specified by:
getSheetNamein interfaceEvaluationWorkbook
-
getExternalName
- Specified by:
getExternalNamein interfaceEvaluationWorkbook
-
getExternalName
public EvaluationWorkbook.ExternalName getExternalName(String nameName, String sheetName, int externalWorkbookNumber) - Specified by:
getExternalNamein interfaceEvaluationWorkbook
-
getNameXPtg
Return an external name (named range, function, user-defined function) Pxg- Specified by:
getNameXPtgin interfaceFormulaParsingWorkbook
-
get3DReferencePtg
- Specified by:
get3DReferencePtgin interfaceFormulaParsingWorkbook
-
get3DReferencePtg
- Specified by:
get3DReferencePtgin interfaceFormulaParsingWorkbook
-
resolveNameXText
- Specified by:
resolveNameXTextin interfaceEvaluationWorkbook- Specified by:
resolveNameXTextin interfaceFormulaRenderingWorkbook
-
getExternalSheet
- Specified by:
getExternalSheetin interfaceEvaluationWorkbook- Specified by:
getExternalSheetin interfaceFormulaRenderingWorkbook
-
getExternalSheet
public EvaluationWorkbook.ExternalSheet getExternalSheet(String firstSheetName, String lastSheetName, int externalWorkbookNumber) - Specified by:
getExternalSheetin interfaceEvaluationWorkbook
-
getExternalSheetIndex
- Specified by:
getExternalSheetIndexin interfaceFormulaParsingWorkbook
-
getSheetIndex
- Specified by:
getSheetIndexin interfaceEvaluationWorkbook
-
getSheetFirstNameByExternSheet
- Specified by:
getSheetFirstNameByExternSheetin interfaceFormulaRenderingWorkbook
-
getSheetLastNameByExternSheet
- Specified by:
getSheetLastNameByExternSheetin interfaceFormulaRenderingWorkbook
-
getNameText
- Specified by:
getNameTextin interfaceFormulaRenderingWorkbook
-
getName
- Specified by:
getNamein interfaceEvaluationWorkbook
-
createName
- Specified by:
createNamein interfaceFormulaParsingWorkbook
-
getTable
Returns the data table with the given name (case insensitive). Tables are cached for performance (formula evaluation looks them up by name repeatedly). After the first table lookup, adding or removing a table from the document structure will cause trouble. This is meant to be used on documents whose structure is essentially static at the point formulas are evaluated.- Specified by:
getTablein interfaceFormulaParsingWorkbook- Parameters:
name- the data table name (case-insensitive)- Returns:
- The Data table in the workbook named
name, ornullif no table is namedname. - Since:
- 3.15 beta 2
-
getUDFFinder
- Specified by:
getUDFFinderin interfaceEvaluationWorkbook
-
getSpreadsheetVersion
- Specified by:
getSpreadsheetVersionin interfaceEvaluationWorkbook- Specified by:
getSpreadsheetVersionin interfaceFormulaParsingWorkbook
-