elan.instruction
Class Setxy

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

public class Setxy
extends Instruction


Field Summary
protected  Expression myExpression1
           
protected  Expression myExpression2
           
 
Fields inherited from class elan.GrammarElement
functionMap, ourMap
 
Constructor Summary
Setxy(Expression e1, Expression e2)
           
 
Method Summary
 java.lang.Object evaluate(Context c)
          Evaluate this language construct in some context.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myExpression1

protected Expression myExpression1

myExpression2

protected Expression myExpression2
Constructor Detail

Setxy

public Setxy(Expression e1,
             Expression e2)
Method Detail

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

toString

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