Package org.apache.poi.ss.formula.eval
Class UnaryPlusEval
- java.lang.Object
-
- org.apache.poi.ss.formula.functions.Fixed1ArgFunction
-
- org.apache.poi.ss.formula.eval.UnaryPlusEval
-
- All Implemented Interfaces:
ArrayFunction
,Function
,Function1Arg
public final class UnaryPlusEval extends Fixed1ArgFunction implements ArrayFunction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueEval
evaluate(int srcCellRow, int srcCellCol, ValueEval arg0)
ValueEval
evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
-
Methods inherited from class org.apache.poi.ss.formula.functions.Fixed1ArgFunction
evaluate, evaluate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.functions.ArrayFunction
evaluateOneArrayArg, evaluateTwoArrayArgs
-
-
-
-
Field Detail
-
instance
public static final Function instance
-
-
Method Detail
-
evaluate
public ValueEval evaluate(int srcCellRow, int srcCellCol, ValueEval arg0)
Description copied from interface:Function1Arg
- Specified by:
evaluate
in interfaceFunction1Arg
-
evaluateArray
public ValueEval evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
- Specified by:
evaluateArray
in interfaceArrayFunction
- Parameters:
args
- the evaluated function arguments. Empty values are represented withBlankEval
orMissingArgEval
, nevernull
.srcRowIndex
- row index of the cell containing the formula under evaluationsrcColumnIndex
- 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
.
-
-