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
public abstract class LogicalFunction extends Fixed1ArgFunction implements ArrayFunction
Implementation of the various ISxxx Logical Functions, which take a single expression argument, and return True or False.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionISBLANKstatic FunctionISERRImplementation of ExcelISERR()function.static FunctionISERRORstatic FunctionISLOGICALstatic FunctionISNAImplementation for Excel ISNA() function.static FunctionISNONTEXTstatic FunctionISNUMBERstatic FunctionISREFstatic FunctionISTEXT
-
Constructor Summary
Constructors Constructor Description LogicalFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ValueEvalevaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0)protected abstract booleanevaluate(ValueEval arg)ValueEvalevaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)-
Methods inherited from class org.apache.poi.ss.formula.functions.Fixed1ArgFunction
evaluate, evaluate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.formula.functions.ArrayFunction
evaluateOneArrayArg, evaluateTwoArrayArgs
-
-
-
-
Field Detail
-
ISLOGICAL
public static final Function ISLOGICAL
-
ISNONTEXT
public static final Function ISNONTEXT
-
ISNUMBER
public static final Function ISNUMBER
-
ISTEXT
public static final Function ISTEXT
-
ISBLANK
public static final Function ISBLANK
-
ISERROR
public static final Function ISERROR
-
ISERR
public static final Function 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
public static final Function ISNA
Implementation for Excel ISNA() function.Syntax:
ISNA(value)value The value to be tested
ReturnsTRUEif the specified value is '#N/A',FALSEotherwise.
-
ISREF
public static final Function ISREF
-
-
Method Detail
-
evaluate
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0)
Description copied from interface:Function1Arg- Specified by:
evaluatein interfaceFunction1Arg
-
evaluateArray
public ValueEval evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)
- 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.
-
-