saffron.rel.java
Class ForTerminator

java.lang.Object
  |
  +--saffron.rel.Rel
        |
        +--saffron.rel.SingleRel
              |
              +--saffron.rel.java.SingleTerminator
                    |
                    +--saffron.rel.java.ForTerminator
All Implemented Interfaces:
Terminator

public class ForTerminator
extends SingleTerminator

Converts a Rel of CallingConvention.JAVA into a Java for-loop.


Nested Class Summary
 
Nested classes inherited from class saffron.rel.Rel
 
Field Summary
(package private)  StatementList body
           
(package private)  String label
           
(package private)  Variable variable
           
 
Fields inherited from class saffron.rel.SingleRel
child
 
Fields inherited from class saffron.rel.Rel
cluster, digest, id, rowType
 
Constructor Summary
ForTerminator(Cluster cluster, Rel child, Variable variable, StatementList body, String label)
           
 
Method Summary
 Object clone()
           
 Object implement(Implementor implementor, int ordinal)
          Create a plan for this expression according to a calling convention.
 
Methods inherited from class saffron.rel.java.SingleTerminator
computeSelfCost, deriveRowType, getConvention
 
Methods inherited from class saffron.rel.SingleRel
childrenAccept, explain, getInputs, replaceInput
 
Methods inherited from class saffron.rel.Rel
computeDigest, getChildExps, getCluster, getCorelVariable, getEnvironment, getId, getInput, getOrCreateCorelVariable, getParentEnv, getQualifier, getQuery, getRelTypeName, getRows, getRowType, getTable, getType, getVariablesStopped, implementExp, implementExps, implementFieldAccess, implementSelf, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorelVariable, setCorelVariable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variable

Variable variable

body

StatementList body

label

String label
Constructor Detail

ForTerminator

public ForTerminator(Cluster cluster,
                     Rel child,
                     Variable variable,
                     StatementList body,
                     String label)
Method Detail

clone

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

implement

public Object implement(Implementor implementor,
                        int ordinal)
Description copied from class: Rel
Create a plan for this expression according to a calling convention.

Overrides:
implement in class Rel
Parameters:
implementor - implementor
ordinal - indicates our position in the pre-, in- and postfix walk over the tree; ordinal is -1 when called from the parent, and i when called from the ith child.

SourceForge.net_Logo