net.sf.saffron.oj.util
Class UnboundVariableCollector

java.lang.Object
  |
  +--net.sf.saffron.rex.RexShuttle
        |
        +--net.sf.saffron.oj.util.UnboundVariableCollector

public class UnboundVariableCollector
extends RexShuttle

Finds all unbound varaibles in a relational expression

See Also:
collectFromRel(net.sf.saffron.rel.SaffronRel)

Field Summary
(package private)  Environment env
           
(package private)  Hashtable mapNameToClass
           
 
Constructor Summary
(package private) UnboundVariableCollector(Environment env)
           
 
Method Summary
static UnboundVariableCollector collectFromRel(SaffronRel rel)
          Returns a description of what variables are unbound inside rel.
 ExpressionList getArgumentList()
          Returns an argument list value0, ..., valueN containing all variables valueivalue in this cluster's expression.
 StatementList getAssignmentList()
          Returns a set of assignments to member variables: this.value0 = value0; ...; this.valueN = valueN; return this;.
 MemberDeclarationList getMemberDeclarationList()
          Returns a set of declarations of members to hold variables: private Class0 value0; ...; private ClassN valueN;.
 ParameterList getParameterList()
          Returns a parameter list Class0 value0, ..., ClassN valueN containing all of the unbound variables valueivalue in this cluster's expression.
 RexNode visit(RexCorrelVariable v)
           
 
Methods inherited from class net.sf.saffron.rex.RexShuttle
visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

Environment env

mapNameToClass

Hashtable mapNameToClass
Constructor Detail

UnboundVariableCollector

UnboundVariableCollector(Environment env)
Method Detail

collectFromRel

public static UnboundVariableCollector collectFromRel(SaffronRel rel)
Returns a description of what variables are unbound inside rel.


getArgumentList

public ExpressionList getArgumentList()
Returns an argument list value0, ..., valueN containing all variables valueivalue in this cluster's expression.


getAssignmentList

public StatementList getAssignmentList()
Returns a set of assignments to member variables: this.value0 = value0; ...; this.valueN = valueN; return this;.


getMemberDeclarationList

public MemberDeclarationList getMemberDeclarationList()
Returns a set of declarations of members to hold variables: private Class0 value0; ...; private ClassN valueN;.


getParameterList

public ParameterList getParameterList()
Returns a parameter list Class0 value0, ..., ClassN valueN containing all of the unbound variables valueivalue in this cluster's expression.


visit

public RexNode visit(RexCorrelVariable v)
Overrides:
visit in class RexShuttle

SourceForge.net_Logo