net.sf.saffron.oj.util
Class JavaRowExpression

java.lang.Object
  |
  +--net.sf.saffron.rex.RexNode
        |
        +--net.sf.saffron.oj.util.JavaRowExpression

public class JavaRowExpression
extends RexNode

A row expression which is implemented by an underlying Java expression.

This is a leaf node of a RexNode tree, but the Java expression, represented by a Expression object, may be complex.

Since:
Nov 23, 2003
Version:
$Id: $
Author:
jhyde
See Also:
JavaRexBuilder

Field Summary
(package private)  Environment env
           
 Expression expression
           
private  SaffronType type
           
 
Fields inherited from class net.sf.saffron.rex.RexNode
digest
 
Constructor Summary
JavaRowExpression(Environment env, SaffronType type, Expression expression)
           
 
Method Summary
 Object clone()
           
 SaffronType getType()
           
 boolean isAlwaysTrue()
          Returns whether this expression always returns true.
 
Methods inherited from class net.sf.saffron.rex.RexNode
getKind, isA, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

env

final Environment env

type

private final SaffronType type

expression

public final Expression expression
Constructor Detail

JavaRowExpression

public JavaRowExpression(Environment env,
                         SaffronType type,
                         Expression expression)
Method Detail

isAlwaysTrue

public boolean isAlwaysTrue()
Description copied from class: RexNode
Returns whether this expression always returns true. (Such as if this expression is equal to the literal TRUE.)

Overrides:
isAlwaysTrue in class RexNode

getType

public SaffronType getType()
Specified by:
getType in class RexNode

clone

public Object clone()
Specified by:
clone in class RexNode

SourceForge.net_Logo