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

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.functions.TextFunction
      extended by org.apache.poi.hssf.record.formula.functions.Len
All Implemented Interfaces:
Function

public class Len
extends TextFunction

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

Field Summary
 
Fields inherited from class org.apache.poi.hssf.record.formula.functions.TextFunction
EMPTY_STRING
 
Constructor Summary
Len()
           
 
Method Summary
protected  ValueEval attemptXlateToText(ValueEval ve)
          converts from Different ValueEval types to StringEval.
 Eval evaluate(Eval[] operands, int srcCellRow, short srcCellCol)
           
protected  ValueEval singleOperandEvaluate(Eval eval, int srcRow, short srcCol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Len

public Len()
Method Detail

evaluate

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

singleOperandEvaluate

protected ValueEval singleOperandEvaluate(Eval eval,
                                          int srcRow,
                                          short srcCol)
Overrides:
singleOperandEvaluate in class TextFunction

attemptXlateToText

protected ValueEval attemptXlateToText(ValueEval ve)
converts from Different ValueEval types to StringEval. Note: AreaEvals are not handled, if arg is an AreaEval, the returned value is ErrorEval.VALUE_INVALID

Overrides:
attemptXlateToText in class TextFunction
Parameters:
ve -


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