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

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

public final class UnaryPlusEval
extends java.lang.Object
implements OperationEval

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

Field Summary
static OperationEval instance
           
 
Method Summary
 Eval evaluate(Eval[] args, int srcCellRow, short srcCellCol)
           
 int getNumberOfOperands()
           
 
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

public 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 int getNumberOfOperands()
Specified by:
getNumberOfOperands in interface OperationEval


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