coins.ast.expr
Class BinaryExpr

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.expr.OperatorExpr
          extended bycoins.ast.expr.BinaryExpr
All Implemented Interfaces:
Expr, java.io.Serializable
Direct Known Subclasses:
ArithBinaryExpr, ArrayExpr, AssignExpr, CommaExpr, PointerBinaryExpr

public abstract class BinaryExpr
extends OperatorExpr

Binary expression.

See Also:
Serialized Form

Field Summary
protected  Expr left
           
protected  Expr right
           
 
Constructor Summary
BinaryExpr(Expr _left, Expr _right)
           
 
Method Summary
 ASTree getLeft()
          Returns the left operand.
 Expr getLeftOperand()
           
 ASTree getRight()
          Returns the right operand.
 Expr getRightOperand()
           
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 
Methods inherited from class coins.ast.expr.OperatorExpr
getTag, operatorId, operatorName
 
Methods inherited from class coins.ast.ASTree
accept, putSeparator, rightToString, toString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface coins.ast.Expr
getType
 

Field Detail

left

protected Expr left

right

protected Expr right
Constructor Detail

BinaryExpr

public BinaryExpr(Expr _left,
                  Expr _right)
Method Detail

getLeft

public ASTree getLeft()
Returns the left operand.

Specified by:
getLeft in class ASTree

getRight

public ASTree getRight()
Returns the right operand.

Specified by:
getRight in class ASTree

getLeftOperand

public Expr getLeftOperand()

getRightOperand

public Expr getRightOperand()

setLeft

public void setLeft(ASTree _left)
Specified by:
setLeft in class ASTree

setRight

public void setRight(ASTree _right)
Specified by:
setRight in class ASTree