jcaas.script_nodes
Class LogicalFactor
java.lang.Object
jcaas.script_nodes.AbstractInterpretable
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogicalFactor
public LogicalFactor(ArithmeticExpression exp1,
ArithmeticExpression exp2,
CompareSymbol symbol)
- Constructor for when logical_factor ::= arithmetic_exp comparator arithmetic_exp.
- Parameters:
exp1
- an arithmetic_expexp2
- an arithmetic_expsymbol
- 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.
interpret
public void interpret(Context c)