Class LiveVarValue
java.lang.Object
org.checkerframework.dataflow.livevariable.LiveVarValue
- All Implemented Interfaces:
AbstractValue<LiveVarValue>
A live variable (which is represented by a node) wrapper turning node into abstract value.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Node
A live variable is represented by a node, which can be aLocalVariableNode
orFieldAccessNode
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
leastUpperBound
(LiveVarValue other) Compute the least upper bound of two values.toString()
-
Field Details
-
liveVariable
A live variable is represented by a node, which can be aLocalVariableNode
orFieldAccessNode
.
-
-
Constructor Details
-
LiveVarValue
Create a new live variable.- Parameters:
n
- a node
-
-
Method Details
-
leastUpperBound
Description copied from interface:AbstractValue
Compute the least upper bound of two values.Important: This method must fulfill the following contract:
- Does not change
this
. - Does not change
other
. - Returns a fresh object which is not aliased yet.
- Returns an object of the same (dynamic) type as
this
, even if the signature is more permissive. - Is commutative.
- Specified by:
leastUpperBound
in interfaceAbstractValue<LiveVarValue>
- Does not change
-
hashCode
public int hashCode() -
equals
-
toString
-