Class Obj
java.lang.Object
pascal.taie.analysis.pta.core.heap.Obj
- All Implemented Interfaces:
Indexable
- Direct Known Subclasses:
ConstantObj
,MergedObj
,MockObj
,NewObj
Represents of abstract objects in pointer analysis.
- See Also:
-
Constructor Details
-
Obj
public Obj()
-
-
Method Details
-
getIndex
public int getIndex() -
isFunctional
public boolean isFunctional()An object is functional means that it can hold fields (or array indexes).- Returns:
true
if this is a functionObj
.
-
getType
- Returns:
- the type of the object.
-
getAllocation
- Returns:
- the allocation of the object.
-
getContainerMethod
- 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
This method is useful for type sensitivity.- Returns:
- the type containing the allocation site of this object. For special objects, the return values of this method are also special.
-