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 classes inherited from class saffron.rel.Rel |
|
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 |
variable
Variable variable
body
StatementList body
label
String label
ForTerminator
public ForTerminator(Cluster cluster,
Rel child,
Variable variable,
StatementList body,
String label)
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
- implementorordinal
- 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
i
th child.