Class NotImplementedFunction
- java.lang.Object
-
- org.apache.poi.ss.formula.functions.NotImplementedFunction
-
- All Implemented Interfaces:
Function
public final class NotImplementedFunction extends Object implements Function
This is the default implementation of a Function class. The default behaviour is to raise a POI internal error (NotImplementedFunctionException
). This error should alert the user that the formula contained a function that is not yet implemented.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NotImplementedFunction()
NotImplementedFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueEval
evaluate(ValueEval[] operands, int srcRow, int srcCol)
String
getFunctionName()
-
-
-
Constructor Detail
-
NotImplementedFunction
protected NotImplementedFunction()
-
NotImplementedFunction
public NotImplementedFunction(String name)
-
-
Method Detail
-
evaluate
public ValueEval evaluate(ValueEval[] operands, int srcRow, int srcCol)
- Specified by:
evaluate
in interfaceFunction
- Parameters:
operands
- the evaluated function arguments. Empty values are represented withBlankEval
orMissingArgEval
, nevernull
.srcRow
- row index of the cell containing the formula under evaluationsrcCol
- column index of the cell containing the formula under evaluation- Returns:
- The evaluated result, possibly an
ErrorEval
, nevernull
. Note - Excel uses the error code #NUM! instead of IEEE NaN, so when numeric functions evaluate toDouble.NaN
be sure to translate the result toErrorEval.NUM_ERROR
.
-
getFunctionName
public String getFunctionName()
-
-