public abstract class AbstractBinopExpr extends Object implements Expr
Modifier and Type | Field and Description |
---|---|
protected ValueBox |
op1Box |
protected ValueBox |
op2Box |
Constructor and Description |
---|
AbstractBinopExpr() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Returns a clone of this Value.
|
int |
equivHashCode()
Returns a hash code for this object, consistent with structural equality.
|
boolean |
equivTo(Object o)
Returns true if this object is equivalent to o.
|
Value |
getOp1() |
ValueBox |
getOp1Box() |
Value |
getOp2() |
ValueBox |
getOp2Box() |
protected abstract String |
getSymbol()
Returns the unique symbol for an operator.
|
List<ValueBox> |
getUseBoxes()
Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value.
|
void |
setOp1(Value op1) |
void |
setOp2(Value op2) |
String |
toString() |
void |
toString(UnitPrinter up) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply
public Value getOp1()
public Value getOp2()
public ValueBox getOp1Box()
public ValueBox getOp2Box()
public void setOp1(Value op1)
public void setOp2(Value op2)
public final List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public boolean equivTo(Object o)
EquivTo
public int equivHashCode()
equivHashCode
in interface EquivTo
protected abstract String getSymbol()
public abstract Object clone()
Value
public void toString(UnitPrinter up)