org.apache.poi.hssf.record.formula.functions
Class BooleanFunction

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.functions.BooleanFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
And, Not, Or

public abstract class BooleanFunction
extends java.lang.Object
implements Function

Author:
Amol S. Deshmukh < amolweb at ya hoo dot com > Here are the general rules concerning Boolean functions:
  1. Blanks are not either true or false
  2. Strings are not either true or false (even strings "true" or "TRUE" or "0" etc.)
  3. Numbers: 0 is false. Any other number is TRUE.
  4. References are evaluated and above rules apply.
  5. Areas: Individual cells in area are evaluated and checked to see if they are blanks, strings etc.

Constructor Summary
BooleanFunction()
           
 
Method Summary
protected  ValueEval singleOperandEvaluate(Eval eval, int srcRow, short srcCol, boolean stringsAreBlanks)
           
 
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.hssf.record.formula.functions.Function
evaluate
 

Constructor Detail

BooleanFunction

public BooleanFunction()
Method Detail

singleOperandEvaluate

protected ValueEval singleOperandEvaluate(Eval eval,
                                          int srcRow,
                                          short srcCol,
                                          boolean stringsAreBlanks)


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.