Record Class AllocationString
java.lang.Object
java.lang.Record
com.ibm.wala.ipa.callgraph.propagation.cfa.AllocationString
- All Implemented Interfaces:
ContextItem
public record AllocationString(AllocationSite[] allocationSites)
extends Record
implements ContextItem
This is a
ContextItem that records n allocation sites, the 0th element represents the
most recently used receiver obj, which is an AllocationSiteInNode-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Constructor Summary
ConstructorsConstructorDescriptionAllocationString(AllocationSite allocationSite) AllocationString(AllocationSite[] allocationSites) Creates an instance of aAllocationStringrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallocationSitesrecord component.booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.intinthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
AllocationString
-
AllocationString
Creates an instance of aAllocationStringrecord class.- Parameters:
allocationSites- the value for theallocationSitesrecord component
-
-
Method Details
-
getAllocationSites
Deprecated, for removal: This API element is subject to removal in a future version.UseallocationSites()instead -
getLength
public int getLength() -
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). -
hashCode
-
toString
-
allocationSites
Returns the value of theallocationSitesrecord component.- Returns:
- the value of the
allocationSitesrecord component
-
allocationSites()instead