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

GreaterThanEval

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

Fields Summary
private GreaterThanPtg
delegate
Constructors Summary
public GreaterThanEval(Ptg ptg)

        this.delegate = (GreaterThanPtg) 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();