public class IF extends Instruction
Modifier and Type | Field and Description |
---|---|
private StrictInstructionList |
instructionList |
private GrammarElement |
statement |
gelementsToValue
Constructor and Description |
---|
IF(GrammarElement e,
StrictInstructionList sil)
Constructs an IF 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 GrammarElement statement
private StrictInstructionList instructionList
public IF(GrammarElement e, StrictInstructionList sil)
e
- grammar elementsil
- 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