jcaas.script_nodes
Class LogicalFactor

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

public class LogicalFactor
extends AbstractInterpretable

This class represents a logical_factor node in the syntax tree of a script.


Constructor Summary
LogicalFactor(ArithmeticExpression exp1, ArithmeticExpression exp2, CompareSymbol symbol)
          Constructor for when logical_factor ::= arithmetic_exp comparator arithmetic_exp.
LogicalFactor(LogicalExpression exp)
          Constructor for when logical_factor ::= ( logical_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

LogicalFactor

public LogicalFactor(ArithmeticExpression exp1,
                     ArithmeticExpression exp2,
                     CompareSymbol symbol)
Constructor for when logical_factor ::= arithmetic_exp comparator arithmetic_exp.

Parameters:
exp1 - an arithmetic_exp
exp2 - an arithmetic_exp
symbol - the manner in which to compare the two arithmetic_exp.

LogicalFactor

public LogicalFactor(LogicalExpression exp)
Constructor for when logical_factor ::= ( logical_exp ).

Parameters:
exp - the logical_exp to drop down to in the syntax tree.
Method Detail

interpret

public void interpret(Context c)