public class Constant extends java.lang.Object implements AbstractValue<Constant>
| Modifier and Type | Class and Description |
|---|---|
static class |
Constant.Type |
| Modifier and Type | Field and Description |
|---|---|
protected Constant.Type |
type
What kind of abstract value is this?
|
protected @Nullable java.lang.Integer |
value
The value of this abstract value (or null)
|
| Constructor and Description |
|---|
Constant(Constant.Type type) |
Constant(java.lang.Integer value) |
| Modifier and Type | Method and Description |
|---|---|
Constant |
copy() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getValue() |
int |
hashCode() |
boolean |
isBottom() |
boolean |
isConstant() |
boolean |
isTop() |
Constant |
leastUpperBound(Constant other)
Compute the least upper bound of two stores.
|
java.lang.String |
toString() |
protected Constant.Type type
protected @Nullable java.lang.Integer value
public Constant(Constant.Type type)
public Constant(java.lang.Integer value)
public boolean isTop()
public boolean isBottom()
public boolean isConstant()
public java.lang.Integer getValue()
public Constant copy()
public Constant leastUpperBound(Constant other)
AbstractValueImportant: This method must fulfill the following contract:
this.
other.
this, even if the signature is
more permissive.
leastUpperBound in interface AbstractValue<Constant>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object