|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.script_nodes.AbstractInterpretable
jcaas.script_nodes.Statement
jcaas.script_nodes.Assignment
public class Assignment
This class represents an assign_stmt in a syntax tree of a script.
Field Summary |
---|
Fields inherited from class jcaas.script_nodes.Statement |
---|
NULLSTATEMENT |
Constructor Summary | |
---|---|
Assignment(Identifier id,
ArithmeticExpression exp)
Constructor for when assign_stmt ::= IDENTIFIER = arithmetic_exp. |
Method Summary | |
---|---|
void |
interpret(Context c)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assignment(Identifier id, ArithmeticExpression exp)
id
- the IDENTIFIER of a variable for which to store a value in.exp
- the arithmetic_exp to evaluate and store in the variable.Method Detail |
---|
public void interpret(Context c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |