Class NewObj
java.lang.Object
pascal.taie.analysis.pta.core.heap.Obj
pascal.taie.analysis.pta.core.heap.NewObj
- All Implemented Interfaces:
Indexable
Objects that are created by new statements.
-
Method Summary
Methods inherited from class pascal.taie.analysis.pta.core.heap.Obj
getIndex, isFunctional
-
Method Details
-
getType
-
getAllocation
- Specified by:
getAllocation
in classObj
- Returns:
- the allocation of the object.
-
getContainerMethod
- Specified by:
getContainerMethod
in classObj
- Returns:
- the method containing the allocation site of this object. For some special objects, e.g., string constants, which are not allocated in any method, this API returns an empty Optional.
-
getContainerType
Description copied from class:Obj
This method is useful for type sensitivity.- Specified by:
getContainerType
in classObj
- Returns:
- the type containing the allocation site of this object. For special objects, the return values of this method are also special.
-
toString
-