public abstract class BooleanFunction extends java.lang.Object implements Function, ArrayFunction
| 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) |
ValueEval |
evaluateArray(ValueEval[] args,
int srcRowIndex,
int srcColumnIndex) |
protected abstract boolean |
getInitialResultValue() |
protected abstract boolean |
partialEvaluate(boolean cumulativeResult,
boolean currentValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_evaluateOneArrayArg, _evaluateTwoArrayArgs, evaluateOneArrayArg, evaluateTwoArrayArgspublic 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 Functionargs - 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)
public ValueEval evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
evaluateArray in interface ArrayFunctionargs - the evaluated function arguments. Empty values are represented with
BlankEval or MissingArgEval, never null.srcRowIndex - row index of the cell containing the formula under evaluationsrcColumnIndex - 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.Copyright 2022 The Apache Software Foundation or its licensors, as applicable.