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 ObjgetMockObj(Descriptor desc, Object alloc, Type type) default ObjgetMockObj(Descriptor desc, Object alloc, Type type, boolean isFunctional) default ObjgetMockObj(Descriptor desc, Object alloc, Type type, JMethod container) getMockObj(Descriptor desc, Object alloc, Type type, JMethod container, boolean isFunctional) booleanisStringConstant(Obj obj)
-
Method Details
-
getObj
- Returns:
- the abstract object for given new statement.
-
getConstantObj
- Returns:
- the constant object for given value.
-
isStringConstant
- Returns:
trueifobjrepresents 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.
-