elan.instruction
Class Command

java.lang.Object
  |
  +--elan.GrammarElement
        |
        +--elan.instruction.Instruction
              |
              +--elan.instruction.Command

public class Command
extends Instruction

Relates to slogo commands. This class is used to allow a statement to be both an Expression and an Instruction.


Field Summary
protected  Expression myExpression
           
 
Fields inherited from class elan.GrammarElement
ourMap
 
Constructor Summary
Command(Expression e)
           
 
Method Summary
 java.lang.Object evaluate(Context c)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myExpression

protected Expression myExpression
Constructor Detail

Command

public Command(Expression e)
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
Overrides:
evaluate in class Instruction

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object