org.apache.poi.hssf.record.formula.functions
Class Sum

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.functions.NumericFunction
      extended by org.apache.poi.hssf.record.formula.functions.MultiOperandNumericFunction
          extended by org.apache.poi.hssf.record.formula.functions.Sum
All Implemented Interfaces:
Function

public class Sum
extends MultiOperandNumericFunction

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

Field Summary
 
Fields inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction
E, PI
 
Constructor Summary
Sum()
           
 
Method Summary
 Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol)
           
protected  ValueEvalToNumericXlator getXlator()
          this is the default impl for the factory method getXlator of the super class NumericFunction.
 
Methods inherited from class org.apache.poi.hssf.record.formula.functions.MultiOperandNumericFunction
areSubArraysConsistent, getMaxNumOperands, getNumberArray, getNumberArray
 
Methods inherited from class org.apache.poi.hssf.record.formula.functions.NumericFunction
singleOperandEvaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sum

public Sum()
Method Detail

getXlator

protected ValueEvalToNumericXlator getXlator()
Description copied from class: MultiOperandNumericFunction
this is the default impl for the factory method getXlator of the super class NumericFunction. Subclasses can override this method if they desire to return a different ValueEvalToNumericXlator instance than the default.

Overrides:
getXlator in class MultiOperandNumericFunction

evaluate

public Eval evaluate(Eval[] operands,
                     int srcCellRow,
                     short srcCellCol)


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