elan.instruction
Class Assignment
java.lang.Object
|
+--elan.GrammarElement
|
+--elan.instruction.Instruction
|
+--elan.instruction.Assignment
- public class Assignment
- extends Instruction
Relates to an assignment-type instruction:
x = 7
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myVariable
protected Variable myVariable
myExpression
protected Expression myExpression
Assignment
public Assignment(Variable v,
Expression e)
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