net.sf.farrago.ojrex
Class FarragoOJRexTruthTestImplementor
java.lang.Object
net.sf.farrago.ojrex.FarragoOJRexImplementor
net.sf.farrago.ojrex.FarragoOJRexTruthTestImplementor
- All Implemented Interfaces:
- OJRexImplementor
public class FarragoOJRexTruthTestImplementor
- extends FarragoOJRexImplementor
FarragoOJRexTruthTestImplementor implements Farrago specifics of OJRexImplementor
for truth-test row expressions
IS TRUE
and IS FALSE
.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/ojrex/FarragoOJRexTruthTestImplementor.java#13 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isTrue
private final boolean isTrue
negated
private final boolean negated
FarragoOJRexTruthTestImplementor
public FarragoOJRexTruthTestImplementor(boolean isTrue,
boolean negated)
implementFarrago
public Expression implementFarrago(FarragoRexToOJTranslator translator,
RexCall call,
Expression[] operands)
- Description copied from class:
FarragoOJRexImplementor
- Refined version of
OJRexImplementor.implement(org.eigenbase.oj.rex.RexToOJTranslator, org.eigenbase.rex.RexCall, openjava.ptree.Expression[])
.
- Specified by:
implementFarrago
in class FarragoOJRexImplementor
- Parameters:
translator
- provides Farrago-specific translation contextcall
- the call to be translatedoperands
- call's operands, which have already been translated
independently
maybeNegate
private Expression maybeNegate(Expression expr,
boolean negate)