public abstract class BooleanFunction extends java.lang.Object implements Function
Modifier and Type | Class and Description |
---|---|
static class |
BooleanFunction.OneArg |
Modifier and Type | Field and Description |
---|---|
static Function |
AND |
static Function |
FALSE |
static Function |
NOT |
static Function |
OR |
static Function |
TRUE |
Constructor and Description |
---|
BooleanFunction() |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(ValueEval[] args,
int srcRow,
int srcCol) |
protected abstract boolean |
getInitialResultValue() |
protected abstract boolean |
partialEvaluate(boolean cumulativeResult,
boolean currentValue) |
public static final Function AND
public static final Function OR
public static final Function FALSE
public static final Function TRUE
public static final Function NOT
public final ValueEval evaluate(ValueEval[] args, int srcRow, int srcCol)
evaluate
in interface Function
args
- the evaluated function arguments. Empty values are represented with
BlankEval
or MissingArgEval
, never null
.srcRow
- row index of the cell containing the formula under evaluationsrcCol
- 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 boolean getInitialResultValue()
protected abstract boolean partialEvaluate(boolean cumulativeResult, boolean currentValue)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.