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
FieldsModifier and TypeFieldDescriptionprotected final NodeA live variable is represented by a node, which can be aLocalVariableNodeorFieldAccessNode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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 aLocalVariableNodeorFieldAccessNode.
-
-
Constructor Details
-
LiveVarValue
Create a new live variable.- Parameters:
n- a node
-
-
Method Details
-
leastUpperBound
Description copied from interface:AbstractValueCompute 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:
leastUpperBoundin interfaceAbstractValue<LiveVarValue>
- Does not change
-
hashCode
public int hashCode() -
equals
-
toString
-