org.apache.poi.hssf.record.formula.eval
Class FunctionEval

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.eval.FunctionEval
All Implemented Interfaces:
OperationEval

public final class FunctionEval
extends java.lang.Object
implements OperationEval

Author:
Amol S. Deshmukh < amolweb at ya hoo dot com >

Field Summary
protected static Function[] functions
          Array elements corresponding to unimplemented functions are null
 
Constructor Summary
FunctionEval(AbstractFunctionPtg funcPtg)
           
 
Method Summary
 ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)
           
 int getNumberOfOperands()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

functions

protected static final Function[] functions
Array elements corresponding to unimplemented functions are null

Constructor Detail

FunctionEval

public FunctionEval(AbstractFunctionPtg funcPtg)
Method Detail

evaluate

public ValueEval evaluate(ValueEval[] args,
                          OperationEvaluationContext ec)
Specified by:
evaluate in interface OperationEval
Parameters:
args - the evaluated operation arguments. Elements of this array typically implement ValueEval. Empty values are represented with BlankEval or MissingArgEval, never null.
ec - used to identify the current cell under evaluation, and potentially to dynamically create references
Returns:
The evaluated result, possibly an ErrorEval, never null.

getNumberOfOperands

public int getNumberOfOperands()
Specified by:
getNumberOfOperands in interface OperationEval


Copyright 2009 The Apache Software Foundation or its licensors, as applicable.