Class FOR_SingleElt<T>
java.lang.Object
simula.runtime.FOR_Element
simula.runtime.FOR_SingleElt<T>
- Type Parameters:
T
- the type of this element
For-statement single value element, not text.
For i:=
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe for-statement control variable.Next value.Fields inherited from class simula.runtime.FOR_Element
more
-
Constructor Summary
ConstructorsConstructorDescriptionFOR_SingleElt
(RTS_NAME<T> cvar, RTS_NAME<T> val) Create single value element, not text. -
Method Summary
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
-
nextValue
-
-
Constructor Details
-
FOR_SingleElt
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrue
if the iteration has more elements.- Specified by:
hasNext
in interfaceIterator<T>
- Overrides:
hasNext
in classFOR_Element
- Returns:
true
if the iteration has more elements
-
next
Update the control variable with the next value if any.- Returns:
true
if the control variable was updated; otherwisefalse
.
-