coins.ast.expr
Class NnaryExpr

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.expr.OperatorExpr
          extended bycoins.ast.expr.NnaryExpr
All Implemented Interfaces:
Expr, java.io.Serializable
Direct Known Subclasses:
AsmExpr, CallExpr, ConditionalExpr

public abstract class NnaryExpr
extends OperatorExpr

Multiple-operands expression.

See Also:
Serialized Form

Constructor Summary
NnaryExpr(Expr _op, ASTree _operands)
          Constructs an NnaryExpr object.
 
Method Summary
protected  Expr getExpr()
           
 ASTree getLeft()
          Returns the operator expression.
 ASTree getRight()
          Returns the operands.
 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
 

Constructor Detail

NnaryExpr

public NnaryExpr(Expr _op,
                 ASTree _operands)
Constructs an NnaryExpr object.

Parameters:
_op - the operator expression.
_operands - the operands.
Method Detail

getExpr

protected Expr getExpr()

getLeft

public ASTree getLeft()
Returns the operator expression.

Specified by:
getLeft in class ASTree

getRight

public ASTree getRight()
Returns the operands.

Specified by:
getRight in class ASTree

setLeft

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

setRight

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