org.apache.poi.hssf.record.formula.eval
Class DivideEval
java.lang.Object
org.apache.poi.hssf.record.formula.eval.DivideEval
- All Implemented Interfaces:
- OperationEval
public final class DivideEval
- extends java.lang.Object
- Author:
- Amol S. Deshmukh < amolweb at ya hoo dot com >
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final OperationEval instance
evaluate
protected double evaluate(double d0,
double d1)
throws EvaluationException
- Throws:
EvaluationException
singleOperandEvaluate
protected final double singleOperandEvaluate(Eval arg,
int srcCellRow,
short srcCellCol)
throws EvaluationException
- Throws:
EvaluationException
evaluate
public final Eval evaluate(Eval[] args,
int srcCellRow,
short srcCellCol)
- 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
.srcCellRow
- row index of the cell containing the formula under evaluationsrcCellCol
- column index of the cell containing the formula under evaluation
- Returns:
- The evaluated result, possibly an
ErrorEval
, never null
.
getNumberOfOperands
public final int getNumberOfOperands()
- Specified by:
getNumberOfOperands
in interface OperationEval
Copyright 2009 The Apache Software Foundation or
its licensors, as applicable.