public class If extends Instruction
Modifier and Type | Field and Description |
---|---|
private ArithmeticBase |
condition |
private StrictInstructionList |
instructionList |
gelementsToValue, subroutineNames
Constructor and Description |
---|
If(ArithmeticBase condition,
StrictInstructionList sil) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this instruction in a Context.
|
java.lang.String |
toString() |
private ArithmeticBase condition
private StrictInstructionList instructionList
public If(ArithmeticBase condition, StrictInstructionList sil)
public 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