public interface FreeRefFunction
When POI evaluates formulas, each reference argument is capable of evaluating any cell inside its range. Actually, even cells outside the reference range but on the same sheet can be evaluated. This allows OFFSET to be implemented like most other functions - taking only the arguments, and source cell coordinates. For the moment this interface only exists to serve the INDIRECT which can decode arbitrary text into cell references, and evaluate them..
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(ValueEval[] args,
OperationEvaluationContext ec) |
ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)
args
- the pre-evaluated arguments for this function. args is never null
,
nor are any of its elements.ec
- primarily used to identify the source cell containing the formula being evaluated.
may also be used to dynamically create reference evals.null
. Possibly an instance of ErrorEval in the case of
a specified Excel error (Exceptions are never thrown to represent Excel errors).Copyright 2020 The Apache Software Foundation or its licensors, as applicable.