net.sf.saffron.rex
Class RexFieldAccess

java.lang.Object
  |
  +--net.sf.saffron.rex.RexNode
        |
        +--net.sf.saffron.rex.RexFieldAccess

public class RexFieldAccess
extends RexNode

Access to a field of a row-expression.

Since:
Nov 24, 2003
Version:
$Id: $
Author:
jhyde

Field Summary
private  RexNode expr
           
private  SaffronField field
           
 
Fields inherited from class net.sf.saffron.rex.RexNode
digest
 
Constructor Summary
(package private) RexFieldAccess(RexNode expr, SaffronField field)
           
 
Method Summary
 Object clone()
           
 RexKind getKind()
          Returns the kind of node this is.
 String getName()
          Returns the name of the field.
 RexNode getReferenceExpr()
          Returns the expression whose field is being accessed.
 SaffronType getType()
           
 
Methods inherited from class net.sf.saffron.rex.RexNode
isA, isAlwaysTrue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

expr

private final RexNode expr

field

private final SaffronField field
Constructor Detail

RexFieldAccess

RexFieldAccess(RexNode expr,
               SaffronField field)
Method Detail

getType

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

clone

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

getKind

public RexKind getKind()
Description copied from class: RexNode
Returns the kind of node this is.

Overrides:
getKind in class RexNode
Returns:
A RexKind value, never null

getReferenceExpr

public RexNode getReferenceExpr()
Returns the expression whose field is being accessed.


getName

public String getName()
Returns the name of the field.


SourceForge.net_Logo