Class LogicalFunction
java.lang.Object
org.apache.poi.ss.formula.functions.Fixed1ArgFunction
org.apache.poi.ss.formula.functions.LogicalFunction
- All Implemented Interfaces:
ArrayFunction,Function,Function1Arg
Implementation of the various ISxxx Logical Functions, which
take a single expression argument, and return True or False.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Functionstatic final FunctionImplementation of ExcelISERR()function.static final Functionstatic final Functionstatic final FunctionImplementation for Excel ISNA() function.static final Functionstatic final Functionstatic final Functionstatic final Function -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex) Methods inherited from class org.apache.poi.ss.formula.functions.Fixed1ArgFunction
evaluateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.ss.formula.functions.ArrayFunction
evaluateOneArrayArg, evaluateTwoArrayArgs
-
Field Details
-
ISLOGICAL
-
ISNONTEXT
-
ISNUMBER
-
ISTEXT
-
ISBLANK
-
ISERROR
-
ISERR
Implementation of ExcelISERR()function.Syntax:
ISERR(value)value The value to be tested
Returns the logical value
TRUEif value refers to any error value except'#N/A'; otherwise, it returnsFALSE. -
ISNA
Implementation for Excel ISNA() function.Syntax:
ISNA(value)value The value to be tested
ReturnsTRUEif the specified value is '#N/A',FALSEotherwise. -
ISREF
-
-
Constructor Details
-
LogicalFunction
public LogicalFunction()
-
-
Method Details
-
evaluate
Description copied from interface:Function1Arg- Specified by:
evaluatein interfaceFunction1Arg
-
evaluateArray
- Specified by:
evaluateArrayin interfaceArrayFunction- Parameters:
args- the evaluated function arguments. Empty values are represented withBlankEvalorMissingArgEval, nevernull.srcRowIndex- row index of the cell containing the formula under evaluationsrcColumnIndex- column index of the cell containing the formula under evaluation- Returns:
- The evaluated result, possibly an
ErrorEval, nevernull. Note - Excel uses the error code #NUM! instead of IEEE NaN, so when numeric functions evaluate toDouble.NaNbe sure to translate the result toErrorEval.NUM_ERROR.
-