codesimian
Class Loop.StaticLoop

java.lang.Object
  extended by codesimian.CS
      extended by codesimian.DefaultCS
          extended by codesimian.Loop
              extended by codesimian.Loop.StaticLoop
All Implemented Interfaces:
CodeSimian, java.io.Serializable
Direct Known Subclasses:
Loop.StaticLoop.StaticForLoop, Loop.StaticLoop.StaticRepeatLoop
Enclosing class:
Loop

public abstract static class Loop.StaticLoop
extends Loop

the boolean loop condition, or max number of loops, is checked ONCE when the loop starts

See Also:
Serialized Form

Nested Class Summary
static class Loop.StaticLoop.StaticForLoop
          the boolean loop condition, or max number of loops, is checked ONCE when the loop starts.
DForProxy(){
double end = param1;
for (double param0 = 0; param0 < end; param0++) param2;
return last value of param2;
}
param0: iteration var.
static class Loop.StaticLoop.StaticRepeatLoop
          LOOP with no iteration var.
DForProxy(){
double end = param0;
for (double i = 0; i < end; i++) param1;
return last value of param1;
}
param0: max value of iteration var.
param1: loop body.
Check value of param0 once, and repeat execution of param1 that many times.
If value of param0 changes during that loop, it is not noticed.
 
Nested classes/interfaces inherited from class codesimian.Loop
Loop.DynamicLoop, Loop.ForEach, Loop.StaticLoop
 
Field Summary
 
Fields inherited from class codesimian.Loop
defaultMaxLoops, UNLIMITED_LOOPS
 
Fields inherited from class codesimian.CS
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER
 
Constructor Summary
Loop.StaticLoop()
           
 
Method Summary
 int getMaxLoops()
           
 void setMaxLoops(int i)
           
 
Methods inherited from class codesimian.Loop
hasCountingIterationVar, internalCost, keyword, minP, paramOrderMatters, sizeKnownWhenLoopStarts
 
Methods inherited from class codesimian.DefaultCS
B, C, countP, decrementMyFuel, deleteP, description, DForProxy, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, LForProxy, LForProxy, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, P, prevD, prevL, PType, S, setB, setC, setCountP, setD, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL, setL1, setMyFuel, setName, setObject, setP, setPrevExec, setS, setZ, start, toString, V, Z
 
Methods inherited from class codesimian.CS
addP, addP, addP, addP, addP, BForProxy, CForProxy, clone, cost, D, deleteP, FForProxy, IForProxy, isIllusion, javaCode, JForProxy, L, L, L, L, L, maxD, maxP, minD, overwrites, parent, parsePriority, PB, PC, PD, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, setB, setC, setCost, setDescription, setF, setHeap, setI, setJ, setL, setL, setParent, setParsePriority, setProxyOf, setPType, setS, setTester, setZ, SForProxy, tester, VForProxy, voidReflect, ZForProxy
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Loop.StaticLoop

public Loop.StaticLoop()
Method Detail

setMaxLoops

public void setMaxLoops(int i)
Specified by:
setMaxLoops in class Loop

getMaxLoops

public int getMaxLoops()
Specified by:
getMaxLoops in class Loop