jcaas.script_nodes
Class ArithmeticFactor

java.lang.Object
  extended by jcaas.script_nodes.AbstractInterpretable
      extended by jcaas.script_nodes.ArithmeticFactor
All Implemented Interfaces:
Interpretable

public class ArithmeticFactor
extends AbstractInterpretable

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

ArithmeticFactor

public ArithmeticFactor(ArithmeticExpression exp)
Constructor for when arithmetic_factor ::= ( arithmetic_exp ).

Parameters:
exp - the arithmetic_exp to drop down to in the syntax tree.

ArithmeticFactor

public ArithmeticFactor(Identifier x)
Constructor for when arithmetic_factor ::= IDENTIFIER.

Parameters:
x - the IDENTIFIER of a variable to use the value of.

ArithmeticFactor

public ArithmeticFactor(NumericValue n)
Constructor for when arithmetic_factor ::= NUMERIC_VALUE.

Parameters:
n - the NUMERIC_VALUE to use.

ArithmeticFactor

public ArithmeticFactor(FunctionCall call)
Constructor for when arithmetic_factor ::= func_call.

Parameters:
call - the func_call to execute.

ArithmeticFactor

public ArithmeticFactor(MethodCall call)
Method Detail

interpret

public void interpret(Context c)