Interface FreeRefFunction
-
- All Known Implementing Classes:
AverageIf
,Averageifs
,BesselJ
,Bin2Dec
,CeilingMath
,CeilingPrecise
,Complex
,Countifs
,Covar
,Days
,Dec2Bin
,Dec2Hex
,Delta
,DollarDe
,DollarFr
,EDate
,ELEval
,ELEvalFunction
,EOMonth
,FactDouble
,FloorMath
,FloorPrecise
,Forecast
,Gcd
,Hex2Dec
,IfNa
,Imaginary
,ImReal
,Indirect
,Lcm
,Maxifs
,Minifs
,NormDist
,NormInv
,NormSDist
,NormSInv
,NumberValueFunction
,Oct2Dec
,Offset
,Poisson
,Quotient
,Single
,Sqrtpi
,Standardize
,Stdevp
,Stdevs
,Sumifs
,Switch
,TDist
,TDist2t
,TDistLt
,TDistRt
,UserDefinedFunction
,Varp
,Vars
,WeekNum
public interface FreeRefFunction
For most Excel functions, involving references ((cell, area), (2d, 3d)), the references are passed in as arguments, and the exact location remains fixed. However, a select few Excel functions have the ability to access cells that were not part of any reference passed as an argument.
Two important functions with this feature are INDIRECT and OFFSETWhen 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..
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueEval
evaluate(ValueEval[] args, OperationEvaluationContext ec)
-
-
-
Method Detail
-
evaluate
ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)
- Parameters:
args
- the pre-evaluated arguments for this function. args is nevernull
, 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.- Returns:
- never
null
. Possibly an instance ofErrorEval
in the case of a specified Excel error (Exceptions are never thrown to represent Excel errors).
-
-