Modifier and Type | Field and Description |
---|---|
static Function |
CHAR
Returns the character specified by a number.
|
static Function |
CLEAN
An implementation of the CLEAN function:
In Excel, the Clean function removes all non-printable characters from a string.
|
static Function |
CONCATENATE |
protected static java.lang.String |
EMPTY_STRING |
static Function |
EXACT |
static Function |
FIND
Implementation of the FIND() function.
|
static Function |
LEFT |
static Function |
LEN |
static Function |
LOWER |
static Function |
MID
An implementation of the MID function
MID returns a specific number of characters from a text string, starting at the specified position. |
static Function |
RIGHT |
static Function |
SEARCH
Implementation of the FIND() function.
|
static Function |
TEXT
An implementation of the TEXT function
TEXT returns a number value formatted with the given number formatting string. |
static Function |
TRIM
An implementation of the TRIM function:
Removes leading and trailing spaces from value if evaluated operand
value is string.
|
static Function |
UPPER |
Constructor and Description |
---|
TextFunction() |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(ValueEval[] args,
int srcCellRow,
int srcCellCol) |
protected static double |
evaluateDoubleArg(ValueEval arg,
int srcCellRow,
int srcCellCol) |
protected abstract ValueEval |
evaluateFunc(ValueEval[] args,
int srcCellRow,
int srcCellCol) |
protected static int |
evaluateIntArg(ValueEval arg,
int srcCellRow,
int srcCellCol) |
protected static java.lang.String |
evaluateStringArg(ValueEval eval,
int srcRow,
int srcCol) |
protected static final java.lang.String EMPTY_STRING
public static final Function CHAR
public static final Function LEN
public static final Function LOWER
public static final Function UPPER
public static final Function TRIM
public static final Function CLEAN
public static final Function MID
public static final Function LEFT
public static final Function RIGHT
public static final Function CONCATENATE
public static final Function EXACT
public static final Function TEXT
DataFormatter
to be done, as this works much the same as the
display focused work that that does.
Syntax:public static final Function FIND
public static final Function SEARCH
protected static final java.lang.String evaluateStringArg(ValueEval eval, int srcRow, int srcCol) throws EvaluationException
EvaluationException
protected static final int evaluateIntArg(ValueEval arg, int srcCellRow, int srcCellCol) throws EvaluationException
EvaluationException
protected static final double evaluateDoubleArg(ValueEval arg, int srcCellRow, int srcCellCol) throws EvaluationException
EvaluationException
public final ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol)
evaluate
in interface Function
args
- the evaluated function arguments. Empty values are represented with
BlankEval
or MissingArgEval
, never null
.srcCellRow
- row index of the cell containing the formula under evaluationsrcCellCol
- column index of the cell containing the formula under evaluationErrorEval
, never null
.
Note - Excel uses the error code #NUM! instead of IEEE NaN, so when
numeric functions evaluate to Double.NaN
be sure to translate the result to ErrorEval.NUM_ERROR
.protected abstract ValueEval evaluateFunc(ValueEval[] args, int srcCellRow, int srcCellCol) throws EvaluationException
EvaluationException
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.