java.lang.Object
simula.runtime.RTS_RTObject.ForElt
simula.runtime.RTS_RTObject.SingleElt<T>
- Type Parameters:
T
- the type of this element
- Enclosing class:
RTS_RTObject
For-statement single value element, not text.
For i:= <Expr>
-
Field Summary
Modifier and TypeFieldDescription(package private) final RTS_RTObject.RTS_NAME
<T> The for-statement control variable.(package private) RTS_RTObject.RTS_NAME
<T> Next value.Fields inherited from class simula.runtime.RTS_RTObject.ForElt
more
-
Constructor Summary
ConstructorDescriptionSingleElt
(RTS_RTObject.RTS_NAME<T> cvar, RTS_RTObject.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
The for-statement control variable. -
nextValue
RTS_RTObject.RTS_NAME<T> nextValueNext value.
-
-
Constructor Details
-
SingleElt
Create single value element, not text.- Parameters:
cvar
- the for-statement control variableval
- the text value expression
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T>
- Overrides:
hasNext
in classRTS_RTObject.ForElt
-
next
-