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

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

public final class DivideEval
extends java.lang.Object

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

Field Summary
static OperationEval instance
           
 
Method Summary
protected  double evaluate(double d0, double d1)
           
 Eval evaluate(Eval[] args, int srcCellRow, short srcCellCol)
           
 int getNumberOfOperands()
           
 int getType()
           
protected  double singleOperandEvaluate(Eval arg, int srcCellRow, short srcCellCol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final OperationEval instance
Method Detail

evaluate

protected double evaluate(double d0,
                          double d1)
                   throws EvaluationException
Throws:
EvaluationException

getType

public final int getType()
Specified by:
getType in interface OperationEval

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

getNumberOfOperands

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


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