Modifier and Type | Field and Description |
---|---|
private Expr |
left |
private BinaryOpType |
op |
private Expr |
right |
Constructor and Description |
---|
BinaryExpr(BinaryOpType op,
Expr left,
Expr right) |
Modifier and Type | Method and Description |
---|---|
void |
accept(TreeVisitor tv) |
Expr |
getLeft() |
BinaryOpType |
getOp() |
Expr |
getRight() |
private static Type |
getType(BinaryOpType op,
Expr left,
Expr right) |
getResultType
private final BinaryOpType op
private final Expr left
private final Expr right
BinaryExpr(BinaryOpType op, Expr left, Expr right)
private static Type getType(BinaryOpType op, Expr left, Expr right)
public BinaryOpType getOp()
public Expr getLeft()
public Expr getRight()
public void accept(TreeVisitor tv)