@Internal public interface EvaluationWorkbook
Modifier and Type | Interface and Description |
---|---|
static class |
EvaluationWorkbook.ExternalName |
static class |
EvaluationWorkbook.ExternalSheet |
static class |
EvaluationWorkbook.ExternalSheetRange |
Modifier and Type | Method and Description |
---|---|
void |
clearAllCachedResultValues()
Propagated from
WorkbookEvaluator.clearAllCachedResultValues() to clear locally cached data. |
int |
convertFromExternSheetIndex(int externSheetIndex)
HSSF Only - convert an external sheet index to an internal sheet index,
for an external-style reference to one of this workbook's own sheets
|
EvaluationWorkbook.ExternalName |
getExternalName(int externSheetIndex,
int externNameIndex)
HSSF Only - fetch the external-style name details
|
EvaluationWorkbook.ExternalName |
getExternalName(java.lang.String nameName,
java.lang.String sheetName,
int externalWorkbookNumber)
XSSF Only - fetch the external-style name details
|
EvaluationWorkbook.ExternalSheet |
getExternalSheet(int externSheetIndex)
HSSF Only - fetch the external-style sheet details
|
EvaluationWorkbook.ExternalSheet |
getExternalSheet(java.lang.String firstSheetName,
java.lang.String lastSheetName,
int externalWorkbookNumber)
XSSF Only - fetch the external-style sheet details
|
Ptg[] |
getFormulaTokens(EvaluationCell cell) |
EvaluationName |
getName(NamePtg namePtg) |
EvaluationName |
getName(java.lang.String name,
int sheetIndex) |
EvaluationSheet |
getSheet(int sheetIndex)
Get the sheet identified by the given 0-based index.
|
int |
getSheetIndex(EvaluationSheet sheet) |
int |
getSheetIndex(java.lang.String sheetName)
Finds a sheet index by case insensitive name.
|
java.lang.String |
getSheetName(int sheetIndex)
Returns the name of the sheet at the given 0-based index.
|
SpreadsheetVersion |
getSpreadsheetVersion() |
UDFFinder |
getUDFFinder() |
java.lang.String |
resolveNameXText(NameXPtg ptg) |
java.lang.String getSheetName(int sheetIndex)
sheetIndex
- The 0-based index of the sheetjava.lang.IllegalArgumentException
- If the index is outside the indices of available sheetsint getSheetIndex(EvaluationSheet sheet)
int getSheetIndex(java.lang.String sheetName)
EvaluationSheet getSheet(int sheetIndex)
sheetIndex
- The 0-based index of the sheetjava.lang.IllegalArgumentException
- If the index is outside the indices of available sheetsEvaluationWorkbook.ExternalSheet getExternalSheet(int externSheetIndex)
Return will have no workbook set if it's actually in our own workbook
java.lang.IllegalStateException
- If called with XSSF or SXSSF workbooksEvaluationWorkbook.ExternalSheet getExternalSheet(java.lang.String firstSheetName, java.lang.String lastSheetName, int externalWorkbookNumber)
Return will have no workbook set if it's actually in our own workbook
java.lang.IllegalStateException
- If called with HSSF workbooksint convertFromExternSheetIndex(int externSheetIndex)
EvaluationWorkbook.ExternalName getExternalName(int externSheetIndex, int externNameIndex)
EvaluationWorkbook.ExternalName getExternalName(java.lang.String nameName, java.lang.String sheetName, int externalWorkbookNumber)
EvaluationName getName(NamePtg namePtg)
EvaluationName getName(java.lang.String name, int sheetIndex)
java.lang.String resolveNameXText(NameXPtg ptg)
Ptg[] getFormulaTokens(EvaluationCell cell)
UDFFinder getUDFFinder()
SpreadsheetVersion getSpreadsheetVersion()
void clearAllCachedResultValues()
WorkbookEvaluator.clearAllCachedResultValues()
to clear locally cached data.
Implementations must call the same method on all referenced EvaluationSheet
instances, as well as clearing local caches.WorkbookEvaluator.clearAllCachedResultValues()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.