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

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

public final class FuncVarEval
extends FunctionEval

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

Field Summary
 
Fields inherited from class org.apache.poi.hssf.record.formula.eval.FunctionEval
functions
 
Constructor Summary
FuncVarEval(AbstractFunctionPtg funcPtg)
           
 
Method Summary
 Eval evaluate(Eval[] operands, int srcRow, short srcCol)
           
 short getFunctionIndex()
           
 int getNumberOfOperands()
           
 
Methods inherited from class org.apache.poi.hssf.record.formula.eval.FunctionEval
getFreeRefFunction, getFunction, isFreeRefFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuncVarEval

public FuncVarEval(AbstractFunctionPtg funcPtg)
Method Detail

evaluate

public Eval evaluate(Eval[] operands,
                     int srcRow,
                     short srcCol)
Parameters:
operands - the evaluated operation arguments. Elements of this array typically implement ValueEval. Empty values are represented with BlankEval or MissingArgEval, never null.
srcRow - row index of the cell containing the formula under evaluation
srcCol - column index of the cell containing the formula under evaluation
Returns:
The evaluated result, possibly an ErrorEval, never null.

getNumberOfOperands

public int getNumberOfOperands()

getFunctionIndex

public short getFunctionIndex()
Specified by:
getFunctionIndex in class FunctionEval


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