|
||||||||||
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.ArithmeticFactor
public class ArithmeticFactor
This class represents an arithmetic_factor node in a syntax tree.
Constructor Summary | |
---|---|
ArithmeticFactor(ArithmeticExpression exp)
Constructor for when arithmetic_factor ::= ( arithmetic_exp ). |
|
ArithmeticFactor(FunctionCall call)
Constructor for when arithmetic_factor ::= func_call. |
|
ArithmeticFactor(Identifier x)
Constructor for when arithmetic_factor ::= IDENTIFIER. |
|
ArithmeticFactor(MethodCall call)
|
|
ArithmeticFactor(NumericValue n)
Constructor for when arithmetic_factor ::= NUMERIC_VALUE. |
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 ArithmeticFactor(ArithmeticExpression exp)
exp
- the arithmetic_exp to drop down to in the syntax tree.public ArithmeticFactor(Identifier x)
x
- the IDENTIFIER of a variable to use the value of.public ArithmeticFactor(NumericValue n)
n
- the NUMERIC_VALUE to use.public ArithmeticFactor(FunctionCall call)
call
- the func_call to execute.public ArithmeticFactor(MethodCall call)
Method Detail |
---|
public void interpret(Context c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |