codesimian
Class Loop.StaticLoop

java.lang.Object
  extended by codesimian.CS<CSGeneric>
      extended by codesimian.DefaultCS
          extended by codesimian.Loop
              extended by codesimian.Loop.StaticLoop
All Implemented Interfaces:
CodeSimian
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


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, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER, THIS
 
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, setPType, setS, setZ, start, toString, V, Z
 
Methods inherited from class codesimian.CS
addB, addC, addD, addF, addI, addJ, addL, addP, addP, addP, addP, addP, addS, addZ, BForProxy, CForProxy, clone, cost, D, deleteP, FForProxy, GETB, GETC, GETD, GETF, GETI, GETJ, GETL, GETS, GETZ, IForProxy, isIllusion, 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, reflect6, setB, SETB, setC, SETC, setCost, SETD, setDescription, setF, SETF, setHeap, setI, SETI, setJ, SETJ, SETL, setL, setL, setParent, setParsePriority, setProxyOf, setS, SETS, setTester, setZ, SETZ, SForProxy, tester, toJavaCode, 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