public abstract class AbstractBinopExpr extends java.lang.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 java.lang.Object |
clone()
Returns a clone of this Value.
|
int |
equivHashCode()
Returns a hash code for this object, consistent with structural equality.
|
boolean |
equivTo(java.lang.Object o)
Returns true if this object is equivalent to o.
|
Value |
getOp1() |
ValueBox |
getOp1Box() |
Value |
getOp2() |
ValueBox |
getOp2Box() |
protected abstract java.lang.String |
getSymbol()
Returns the unique symbol for an operator.
|
java.util.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) |
java.lang.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 java.util.List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public boolean equivTo(java.lang.Object o)
EquivTo
public int equivHashCode()
equivHashCode
in interface EquivTo
protected abstract java.lang.String getSymbol()
public abstract java.lang.Object clone()
Value
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(UnitPrinter up)