net.sf.farrago.fennel.calc
Class CalcRexImplementorTableImpl.IsBoolImplementor

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.IsBoolImplementor
All Implemented Interfaces:
CalcRexImplementor
Direct Known Subclasses:
CalcRexImplementorTableImpl.IsNotBoolImplementor
Enclosing class:
CalcRexImplementorTableImpl

private static class CalcRexImplementorTableImpl.IsBoolImplementor
extends Object
implements CalcRexImplementor

Implements "IS TRUE" and "IS FALSE" operators.


Field Summary
private  boolean boolType
           
protected  RexNode res
           
 
Constructor Summary
CalcRexImplementorTableImpl.IsBoolImplementor(boolean boolType)
           
 
Method Summary
 boolean canImplement(RexCall call)
           
 CalcReg implement(RexCall call, RexToCalcTranslator translator)
          Generates instructions to implement this call, and returns the register which holds the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boolType

private boolean boolType

res

protected RexNode res
Constructor Detail

CalcRexImplementorTableImpl.IsBoolImplementor

CalcRexImplementorTableImpl.IsBoolImplementor(boolean boolType)
Method Detail

canImplement

public boolean canImplement(RexCall call)
Specified by:
canImplement in interface CalcRexImplementor

implement

public CalcReg implement(RexCall call,
                         RexToCalcTranslator translator)
Description copied from interface: CalcRexImplementor
Generates instructions to implement this call, and returns the register which holds the result.

Specified by:
implement in interface CalcRexImplementor