Class PointerAnalysisImpl.HModel
java.lang.Object
com.ibm.wala.ipa.callgraph.propagation.PointerAnalysisImpl.HModel
- All Implemented Interfaces:
HeapModel, InstanceKeyFactory, PointerKeyFactory
- Enclosing class:
PointerAnalysisImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilteredPointerKeyForLocal(CGNode node, int valueNumber, FilteredPointerKey.TypeFilter filter) getInstanceKeyForAllocation(CGNode node, NewSiteReference allocation) <T> InstanceKeygetInstanceKeyForConstant(TypeReference type, T S) getInstanceKeyForMetadataObject(Object obj, TypeReference objType) getInstanceKeyForMultiNewArray(CGNode node, NewSiteReference allocation, int dim) getInstanceKeyForPEI(CGNode node, ProgramCounter peiLoc, TypeReference type) TODO: expand this API to differentiate between different array indicesgetPointerKeyForInstanceField(InstanceKey I, IField field) getPointerKeyForLocal(CGNode node, int valueNumber)
-
Constructor Details
-
HModel
protected HModel()
-
-
Method Details
-
iteratePointerKeys
- Specified by:
iteratePointerKeysin interfaceHeapModel- Returns:
- an Iterator of all PointerKeys that are modeled.
-
getInstanceKeyForAllocation
- Specified by:
getInstanceKeyForAllocationin interfaceInstanceKeyFactory- Returns:
- the instance key that represents a particular allocation
-
getInstanceKeyForMultiNewArray
public InstanceKey getInstanceKeyForMultiNewArray(CGNode node, NewSiteReference allocation, int dim) - Specified by:
getInstanceKeyForMultiNewArrayin interfaceInstanceKeyFactory- Returns:
- the instance key that represents the array allocated as the dim_th dimension at a particular allocation
-
getInstanceKeyForConstant
- Specified by:
getInstanceKeyForConstantin interfaceInstanceKeyFactory- Returns:
- the instance key that represents a constant with value S, when considered as a particular type
-
getInstanceKeyForPEI
- Specified by:
getInstanceKeyForPEIin interfaceInstanceKeyFactory- Returns:
- the instance key that represents the exception of type _type_ thrown by a particular PEI.
-
getInstanceKeyForMetadataObject
- Specified by:
getInstanceKeyForMetadataObjectin interfaceInstanceKeyFactory- Parameters:
objType- TODO- Returns:
- the instance key that represents the metadata object obj
-
getPointerKeyForLocal
- Specified by:
getPointerKeyForLocalin interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representative for the class of pointers that includes the local variable identified by the value number parameter.
- See Also:
-
getFilteredPointerKeyForLocal
public FilteredPointerKey getFilteredPointerKeyForLocal(CGNode node, int valueNumber, FilteredPointerKey.TypeFilter filter) - Specified by:
getFilteredPointerKeyForLocalin interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representative for the class of pointers that includes the local variable identified by the value number parameter.
-
getPointerKeyForReturnValue
- Specified by:
getPointerKeyForReturnValuein interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representative for the class of pointers that includes the return value for a node
- See Also:
-
getPointerKeyForExceptionalReturnValue
- Specified by:
getPointerKeyForExceptionalReturnValuein interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representative for the class of pointers that includes the exceptional return value
-
getPointerKeyForStaticField
- Specified by:
getPointerKeyForStaticFieldin interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representative for the class of pointers that includes the contents of the static field
-
getPointerKeyForInstanceField
- Specified by:
getPointerKeyForInstanceFieldin interfacePointerKeyFactory- Returns:
- the PointerKey that acts as a representation for the class of pointers that includes the given instance field.
-
getPointerKeyForArrayContents
Description copied from interface:PointerKeyFactoryTODO: expand this API to differentiate between different array indices- Specified by:
getPointerKeyForArrayContentsin interfacePointerKeyFactory- Parameters:
I- an InstanceKey representing an abstract array- Returns:
- the PointerKey that acts as a representation for the class of pointers that includes the given array contents.
-
getClassHierarchy
- Specified by:
getClassHierarchyin interfaceHeapModel- Returns:
- the governing class hierarchy for this heap model
-