Class FOR_SingleTValElt
java.lang.Object
simula.runtime.FOR_Element
simula.runtime.FOR_SingleTValElt
For-statement single text value element.
For t:=// Text Value Assignment
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe for-statement control variable.Next value.Fields inherited from class simula.runtime.FOR_Element
more
-
Constructor Summary
ConstructorsConstructorDescriptionFOR_SingleTValElt
(RTS_NAME<RTS_TXT> cvar, RTS_NAME<RTS_TXT> tval) Create single text value element. -
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_SingleTValElt
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrue
if the iteration has more elements.- Specified by:
hasNext
in interfaceIterator<Boolean>
- 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
.
-