saffron.util
Class UnboundVariableCollector

java.lang.Object
  |
  +--openjava.ptree.util.ParseTreeVisitor
        |
        +--openjava.ptree.util.GenericVisitor
              |
              +--saffron.util.UnboundVariableCollector

public class UnboundVariableCollector
extends GenericVisitor

See Also:
Util.getUnboundVariables(saffron.rel.Rel)

Field Summary
(package private)  Environment env
           
(package private)  Hashtable mapNameToClass
           
 
Constructor Summary
(package private) UnboundVariableCollector(Environment env)
           
 
Method Summary
 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.
 void visit(Variable v)
           
 
Methods inherited from class openjava.ptree.util.GenericVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitGeneric
 
Methods inherited from class openjava.ptree.util.ParseTreeVisitor
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

visit

public void visit(Variable v)
Overrides:
visit in class GenericVisitor

getParameterList

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


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;.


SourceForge.net_Logo