elan.instruction
Class StrictInstructionList
java.lang.Object
|
+--elan.GrammarElement
|
+--elan.instruction.Instruction
|
+--elan.instruction.StrictInstructionList
- public class StrictInstructionList
- extends Instruction
|
Field Summary |
protected java.util.List |
myList
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myList
protected java.util.List myList
StrictInstructionList
public StrictInstructionList()
add
public void add(Instruction i)
evaluate
public java.lang.Object evaluate(Context c)
- Description copied from class:
GrammarElement
- Evaluate this language construct in some context. The
evaluation may have side-effects, e.g., moving a turtle.
- Overrides:
evaluate in class Instruction
- Following copied from class:
elan.GrammarElement
- Parameters:
is - the context in which the evaluation takes place- Returns:
- the result of evaluating the construct
iterator
public java.util.Iterator iterator()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object