Package io.keikaiex.formula
Class ELEvalFunction
- java.lang.Object
-
- io.keikaiex.formula.ELEvalFunction
-
- All Implemented Interfaces:
Serializable,FreeRefFunction,Function
public class ELEvalFunction extends Object implements Function, FreeRefFunction, Serializable
This the default function that delegate the POI function call to EL tld function.- Author:
- henrichen, dennischen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ELEvalFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueEvalevaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex)ValueEvalevaluate(ValueEval[] args, OperationEvaluationContext ec)booleanhasFunction()Check if the mapped function is exist
-
-
-
Constructor Detail
-
ELEvalFunction
public ELEvalFunction(String name)
-
-
Method Detail
-
hasFunction
public boolean hasFunction()
Check if the mapped function is exist
-
evaluate
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
- Specified by:
evaluatein interfaceFunction- Parameters:
args- the evaluated function arguments. Empty values are represented withBlankEvalorMissingArgEval, 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.NaNbe sure to translate the result toErrorEval.NUM_ERROR.
-
evaluate
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)
- Specified by:
evaluatein interfaceFreeRefFunction- 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 ofErrorEvalin the case of a specified Excel error (Exceptions are never thrown to represent Excel errors).
-
-