public class JvmHeapLocation extends JvmMemoryLocation
JvmHeapLocation is a memory location corresponding to a dynamic memory entity at a certain program point.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
field |
SetAbstractState<Reference> |
reference |
argNode| Constructor and Description |
|---|
JvmHeapLocation(ArgProgramLocationDependentAbstractState<JvmCfaNode,JvmCfaEdge,MethodSignature> argNode,
SetAbstractState<Reference> reference,
java.lang.String field)
Create a heap location at a specific program location.
|
JvmHeapLocation(SetAbstractState<Reference> reference,
java.lang.String field)
Create a heap location unspecific to a program location.
|
| Modifier and Type | Method and Description |
|---|---|
JvmHeapLocation |
copy()
Creates its copy.
|
boolean |
equals(java.lang.Object obj) |
<T extends LatticeAbstractState> |
extractValueOrDefault(JvmAbstractState abstractState,
T defaultValue)
Returns an
AbstractState representing value stored at the MemoryLocation in the input AbstractState. |
int |
hashCode() |
java.lang.String |
toString() |
getArgNode, getProgramLocation, setArgNode, setProgramLocationpublic final SetAbstractState<Reference> reference
public final java.lang.String field
public JvmHeapLocation(SetAbstractState<Reference> reference, java.lang.String field)
reference - a reference to dynamic memorypublic JvmHeapLocation(ArgProgramLocationDependentAbstractState<JvmCfaNode,JvmCfaEdge,MethodSignature> argNode, SetAbstractState<Reference> reference, java.lang.String field)
argNode - an ARG nodereference - a reference to dynamic memorypublic JvmHeapLocation copy()
MemoryLocationcopy in class JvmMemoryLocationpublic <T extends LatticeAbstractState> T extractValueOrDefault(JvmAbstractState abstractState, T defaultValue)
MemoryLocationAbstractState representing value stored at the MemoryLocation in the input AbstractState.
If the AbstractState does not specify a ValueT at the MemoryLocation, the default value is returned.extractValueOrDefault in class MemoryLocation<JvmCfaNode,JvmCfaEdge,MethodSignature,LatticeAbstractState,JvmAbstractState>public boolean equals(java.lang.Object obj)
equals in class MemoryLocation<JvmCfaNode,JvmCfaEdge,MethodSignature,LatticeAbstractState,JvmAbstractState>public int hashCode()
hashCode in class MemoryLocation<JvmCfaNode,JvmCfaEdge,MethodSignature,LatticeAbstractState,JvmAbstractState>public java.lang.String toString()
toString in class java.lang.Object