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

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

public final class PowerEval
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()
           
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)

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 evaluation
srcCellCol - 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.