public abstract class BinaryExpr extends Expr
Modifier and Type | Field and Description |
---|---|
protected Expr |
leftExpr
The lefthand expression
|
protected Expr |
rightExpr
The righthand expression
|
Constructor and Description |
---|
BinaryExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryExpr constructor
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
Expr |
getLeftExpr()
Get the lefthand expression
|
abstract java.lang.String |
getOperandType()
Get the operand type (e.g., "int")
(must be defined by each subclass)
|
abstract java.lang.String |
getOpName()
Get the operation name (e.g., "+")
(must be defined by each subclass)
|
abstract java.lang.String |
getOpType()
Get the operation type (e.g., "int")
(must be defined by each subclass)
|
Expr |
getRightExpr()
Get the righthand expression
|
getExprType, setExprType
getLineNum
protected Expr leftExpr
protected Expr rightExpr
public Expr getLeftExpr()
public Expr getRightExpr()
public abstract java.lang.String getOpName()
public abstract java.lang.String getOpType()
public abstract java.lang.String getOperandType()