Class FOR_StepUntil
java.lang.Object
simula.runtime.FOR_Element
simula.runtime.FOR_StepUntil
For-statement step until element.
A1 step A2 until A3 C := A1; DELTA := A2; while DELTA*(C-A3) <= 0 do begin S; DELTA := A2; C := C + DELTA; end while; ... next for list element
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe for-statement control variable.The initial value.(package private) Number
Next value.The step value.The until value.Fields inherited from class simula.runtime.FOR_Element
more
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class simula.runtime.FOR_Element
hasNext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
cvar
-
init
-
step
-
until
-
nextValue
Number nextValueNext value.
-
-
Constructor Details
-
FOR_StepUntil
-
-
Method Details
-
next
Update the control variable with the next value if any.- Returns:
true
if the control variable was updated; otherwisefalse
.
-