Record Class AllocationSite
java.lang.Object
java.lang.Record
com.ibm.wala.ipa.callgraph.propagation.AllocationSite
- All Implemented Interfaces:
ContextItem, InstanceKey
public record AllocationSite(IMethod method, NewSiteReference site, IClass concreteType)
extends Record
implements InstanceKey
An
InstanceKey which represents a NewSiteReference in some IMethod. Note
that this differs from AllocationSiteInNode, which represents an allocation in a CGNode that may carry some Context. This type is useful for a
context-insensitive heap abstraction.-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Constructor Summary
ConstructorsConstructorDescriptionAllocationSite(IMethod method, NewSiteReference site, IClass concreteType) Creates an instance of aAllocationSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcreteTyperecord component.booleanIndicates whether some other object is "equal to" this one.Get the creation sites ofthis, i.e., the statements that may allocate objects represented bythis.Deprecated, for removal: This API element is subject to removal in a future version.getSite()Deprecated, for removal: This API element is subject to removal in a future version.Usesite()insteadinthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.site()Returns the value of thesiterecord component.toString()Returns a string representation of this record class.Methods inherited from interface InstanceKey
getConcreteTypeModifier and TypeMethodDescriptiondefault IClassDeprecated, for removal: This API element is subject to removal in a future version.UseInstanceKey.concreteType()instead
-
Constructor Details
-
AllocationSite
Creates an instance of aAllocationSiterecord class.- Parameters:
method- the value for themethodrecord componentsite- the value for thesiterecord componentconcreteType- the value for theconcreteTyperecord component
-
-
Method Details
-
toString
-
getSite
Deprecated, for removal: This API element is subject to removal in a future version.Usesite()instead -
getMethod
Deprecated, for removal: This API element is subject to removal in a future version.Usemethod()instead -
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
getCreationSites
Description copied from interface:InstanceKeyGet the creation sites ofthis, i.e., the statements that may allocate objects represented bythis. A creation site is a pair (n,s), where n is the containingCGNodein the givenCallGraphCGand s is the allocatingNewSiteReference.- Specified by:
getCreationSitesin interfaceInstanceKey
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
site
Returns the value of thesiterecord component.- Returns:
- the value of the
siterecord component
-
concreteType
Returns the value of theconcreteTyperecord component.- Specified by:
concreteTypein interfaceInstanceKey- Returns:
- the value of the
concreteTyperecord component
-
method()instead