FileDocCategorySizeDatePackage
LessEqualEval.javaAPI DocApache Poi 3.0.12008Sun Mar 11 12:59:28 GMT 2007org.apache.poi.hssf.record.formula.eval

LessEqualEval

public class LessEqualEval extends RelationalOperationEval
author
Amol S. Deshmukh < amolweb at ya hoo dot com >

Fields Summary
private LessEqualPtg
delegate
Constructors Summary
public LessEqualEval(Ptg ptg)

        this.delegate = (LessEqualPtg) ptg;
    
Methods Summary
public Evalevaluate(Eval[] operands, int srcRow, short srcCol)

        ValueEval retval = null;
        
        RelationalValues rvs = super.doEvaluate(operands, srcRow, srcCol);
        retval = rvs.ee;
        int result = 0;
        if (retval == null) {
            result = doComparison(rvs.bs);
            if (result == 0) {
                result = doComparison(rvs.ss);
            }
            if (result == 0) {
                result = doComparison(rvs.ds);
            }

            retval = (result <= 0) ? BoolEval.TRUE : BoolEval.FALSE;;
        }

        return retval;
    
public intgetNumberOfOperands()

        return delegate.getNumberOfOperands();
    
public intgetType()

        return delegate.getType();