public class To extends Instruction
Modifier and Type | Field and Description |
---|---|
private StrictInstructionList |
instructionList |
private Subroutine |
sub |
gelementsToValue
Constructor and Description |
---|
To(Subroutine s,
StrictInstructionList sil)
Constructs a Repeat instruction that can be executed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this instruction in a Context.
|
java.lang.String |
toString() |
private Subroutine sub
private StrictInstructionList instructionList
public To(Subroutine s, StrictInstructionList sil)
e
- sub_namesil
- strict instruction list that is the bodypublic java.lang.Object evaluate(Context c)
evaluate
in class Instruction
c
- the Context for the evaluationpublic java.lang.String toString()
toString
in class java.lang.Object