public final class OperationEvaluationContext
extends java.lang.Object
For POI internal use only
Modifier and Type | Field and Description |
---|---|
static FreeRefFunction |
UDF |
Constructor and Description |
---|
OperationEvaluationContext(WorkbookEvaluator bookEvaluator,
EvaluationWorkbook workbook,
int sheetIndex,
int srcRowNum,
int srcColNum,
org.apache.poi.ss.formula.EvaluationTracker tracker) |
OperationEvaluationContext(WorkbookEvaluator bookEvaluator,
EvaluationWorkbook workbook,
int sheetIndex,
int srcRowNum,
int srcColNum,
org.apache.poi.ss.formula.EvaluationTracker tracker,
boolean isSingleValue) |
Modifier and Type | Method and Description |
---|---|
static CellReference |
applyR1C1Reference(CellReference anchorReference,
java.lang.String relativeReference) |
FreeRefFunction |
findUserDefinedFunction(java.lang.String functionName) |
ValueEval |
getArea3DEval(Area3DPtg aptg) |
ValueEval |
getArea3DEval(Area3DPxg aptg) |
ValueEval |
getAreaEval(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex) |
ValueEval |
getAreaValueEval(int firstRowIndex,
int firstColumnIndex,
int lastRowIndex,
int lastColumnIndex,
java.lang.Object[][] tokens) |
int |
getColumnIndex() |
ValueEval |
getDynamicReference(java.lang.String workbookName,
java.lang.String sheetName,
java.lang.String refStrPart1,
java.lang.String refStrPart2,
boolean isA1Style)
Resolves a cell or area reference dynamically.
|
ValueEval |
getNameXEval(NameXPtg nameXPtg) |
ValueEval |
getNameXEval(NameXPxg nameXPxg) |
ValueEval |
getRef3DEval(Ref3DPtg rptg) |
ValueEval |
getRef3DEval(Ref3DPxg rptg) |
ValueEval |
getRefEval(int rowIndex,
int columnIndex) |
org.apache.poi.ss.formula.SheetRangeEvaluator |
getRefEvaluatorForCurrentSheet() |
int |
getRowIndex() |
int |
getSheetIndex() |
EvaluationWorkbook |
getWorkbook() |
boolean |
isArraymode() |
boolean |
isSingleValue()
default true
|
void |
setArrayMode(boolean value) |
public static final FreeRefFunction UDF
public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, EvaluationWorkbook workbook, int sheetIndex, int srcRowNum, int srcColNum, org.apache.poi.ss.formula.EvaluationTracker tracker)
public OperationEvaluationContext(WorkbookEvaluator bookEvaluator, EvaluationWorkbook workbook, int sheetIndex, int srcRowNum, int srcColNum, org.apache.poi.ss.formula.EvaluationTracker tracker, boolean isSingleValue)
public boolean isArraymode()
public void setArrayMode(boolean value)
public EvaluationWorkbook getWorkbook()
public int getRowIndex()
public int getColumnIndex()
public org.apache.poi.ss.formula.SheetRangeEvaluator getRefEvaluatorForCurrentSheet()
public ValueEval getDynamicReference(java.lang.String workbookName, java.lang.String sheetName, java.lang.String refStrPart1, java.lang.String refStrPart2, boolean isA1Style)
workbookName
- the name of the workbook containing the reference. If null
the current workbook is assumed. Note - to evaluate formulas which use multiple workbooks,
a CollaboratingWorkbooksEnvironment
must be set up.sheetName
- the name of the sheet containing the reference. May be null
(when workbookName
is also null) in which case the current workbook and sheet is
assumed.refStrPart1
- the single cell reference or first part of the area reference. Must not
be null
.refStrPart2
- the second part of the area reference. For single cell references this
parameter must be null
isA1Style
- specifies the format for refStrPart1
and refStrPart2
.
Pass true
for 'A1' style and false
for 'R1C1' style.RefEval
or AreaEval
java.lang.RuntimeException
- If invalid parameters are providedpublic FreeRefFunction findUserDefinedFunction(java.lang.String functionName)
public ValueEval getRefEval(int rowIndex, int columnIndex)
public ValueEval getAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex)
public ValueEval getAreaValueEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex, int lastColumnIndex, java.lang.Object[][] tokens)
public int getSheetIndex()
public boolean isSingleValue()
public static CellReference applyR1C1Reference(CellReference anchorReference, java.lang.String relativeReference)
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.