Interface HeapModel
- All Superinterfaces:
Indexer<Obj>
,Serializable
- All Known Implementing Classes:
AbstractHeapModel
,AllocationSiteBasedModel
Represents of heap models for heap objects.
Pointer analysis should ALWAYS obtain
Obj
via this interface.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetConstantObj
(ReferenceLiteral value) default Obj
getMockObj
(Descriptor desc, Object alloc, Type type) default Obj
getMockObj
(Descriptor desc, Object alloc, Type type, boolean isFunctional) default Obj
getMockObj
(Descriptor desc, Object alloc, Type type, JMethod container) getMockObj
(Descriptor desc, Object alloc, Type type, JMethod container, boolean isFunctional) boolean
isStringConstant
(Obj obj)
-
Method Details
-
getObj
- Returns:
- the abstract object for given new statement.
-
getConstantObj
- Returns:
- the constant object for given value.
-
isStringConstant
- Returns:
true
ifobj
represents a string constant.
-
getMockObj
-
getMockObj
- Returns:
- the mock object for given arguments.
-
getMockObj
- Returns:
- the mock object for given arguments.
-
getMockObj
- Returns:
- the mock object for given arguments.
-
getObjects
Collection<Obj> getObjects()- Returns:
- all objects in this heap model.
-