Top Description Fields Constructors Methods
org.apache.poi.ss.formula.functions

public abstract Class LogicalFunction

extends Fixed1ArgFunction
implements ArrayFunction
Class Inheritance
All Implemented Interfaces
org.apache.poi.ss.formula.functions.ArrayFunction
Imports
org.apache.poi.ss.formula.eval.*

Implementation of the various ISxxx Logical Functions, which take a single expression argument, and return True or False.

Field Summary

Modifier and TypeField and Description
public static final Function
public static final Function
ISERR

Implementation of Excel ISERR() function.

public static final Function
public static final Function
public static final Function
ISNA

Implementation for Excel ISNA() function.

public static final Function
public static final Function
public static final Function
public static final Function

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueEval
protected abstract boolean
evaluate(ValueEval
any ValueEval, potentially BlankEval or ErrorEval.
arg
)

public ValueEval
evaluateArray(ValueEval[]
the evaluated function arguments. Empty values are represented with BlankEval or MissingArgEval, never null.
args
,
int
row index of the cell containing the formula under evaluation
srcRowIndex
,
int
column index of the cell containing the formula under evaluation
srcColumnIndex
)

Implements org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

Inherited from org.apache.poi.ss.formula.functions.Fixed1ArgFunction:
evaluate

Field Detail

ISBLANKback to summary
public static final Function ISBLANK
ISERRback to summary
public static final Function ISERR

Implementation of Excel ISERR() function.

Syntax:
ISERR(value)

value The value to be tested

Returns the logical value TRUE if value refers to any error value except '#N/A'; otherwise, it returns FALSE.

ISERRORback to summary
public static final Function ISERROR
ISLOGICALback to summary
public static final Function ISLOGICAL
ISNAback to summary
public static final Function ISNA

Implementation for Excel ISNA() function.

Syntax:
ISNA(value)

value The value to be tested

Returns TRUE if the specified value is '#N/A', FALSE otherwise.

ISNONTEXTback to summary
public static final Function ISNONTEXT
ISNUMBERback to summary
public static final Function ISNUMBER
ISREFback to summary
public static final Function ISREF
ISTEXTback to summary
public static final Function ISTEXT

Constructor Detail

LogicalFunctionback to summary
public LogicalFunction()

Method Detail

evaluateback to summary
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0)

Implements org.apache.poi.ss.formula.functions.Function1Arg.evaluate.

Doc from org.apache.poi.ss.formula.functions.Function1Arg.evaluate.

see Function#evaluate(ValueEval[], int, int)

Annotations
@Override
@SuppressWarnings:unused
evaluateback to summary
protected abstract boolean evaluate(ValueEval arg)
Parameters
arg:ValueEval

any ValueEval, potentially BlankEval or ErrorEval.

evaluateArrayback to summary
public ValueEval evaluateArray(ValueEval[] args, int srcRowIndex, int srcColumnIndex)

Implements org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

Parameters
args:ValueEval[]

Doc from org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

the evaluated function arguments. Empty values are represented with BlankEval or MissingArgEval, never null.

srcRowIndex:int

Doc from org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

row index of the cell containing the formula under evaluation

srcColumnIndex:int

Doc from org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

column index of the cell containing the formula under evaluation

Returns:ValueEval

Doc from org.apache.poi.ss.formula.functions.ArrayFunction.evaluateArray.

The evaluated result, possibly an ErrorEval, 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.

Annotations
@Override