xacute.quilt
Class BinOp

java.lang.Object
  |
  +--xacute.quilt.QuiltExpression
        |
        +--xacute.quilt.Operator
              |
              +--xacute.quilt.BinOp
All Implemented Interfaces:
PPrintable
Direct Known Subclasses:
BinOpArith, BinOpBool, BinOpNodeLists

public abstract class BinOp
extends Operator

This class represents any binary operator. To make evaluation easier and faster, the operator applies to a list of arguments. The first argument is stored separately. The other arguments are stored in an array.


Field Summary
protected  QuiltExpression e
          This field is the left-hand side of the binary operation.
protected  QuiltExpression[] operands
          The rest of the arguments.
 
Method Summary
protected  QuiltExpression getExpr(int i)
          Returns the expression at a given index in the right-hand side of the binary operation.
 
Methods inherited from class xacute.quilt.QuiltExpression
isTrue, pprint, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

protected QuiltExpression e
This field is the left-hand side of the binary operation.

operands

protected QuiltExpression[] operands
The rest of the arguments.
Method Detail

getExpr

protected QuiltExpression getExpr(int i)
Returns the expression at a given index in the right-hand side of the binary operation.