public class LiveVarValue extends Object implements AbstractValue<LiveVarValue>
Modifier and Type | Field and Description |
---|---|
protected Node |
liveVariable
A live variable is represented by a node, which can be a
LocalVariableNode or FieldAccessNode . |
Constructor and Description |
---|
LiveVarValue(Node n)
Create a new live variable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object obj) |
int |
hashCode() |
LiveVarValue |
leastUpperBound(LiveVarValue other)
Compute the least upper bound of two stores.
|
String |
toString() |
protected final Node liveVariable
LocalVariableNode
or FieldAccessNode
.public LiveVarValue(Node n)
n
- a nodepublic LiveVarValue leastUpperBound(LiveVarValue other)
AbstractValue
Important: This method must fulfill the following contract:
this
.
other
.
this
, even if the signature is
more permissive.
leastUpperBound
in interface AbstractValue<LiveVarValue>