Record Class ConcreteTypeKey
java.lang.Object
java.lang.Record
com.ibm.wala.ipa.callgraph.propagation.ConcreteTypeKey
- All Implemented Interfaces:
ContextItem, InstanceKey
An instance key which represents a unique set for each concrete type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Constructor Summary
ConstructorsConstructorDescriptionConcreteTypeKey(IClass type) Creates an instance of aConcreteTypeKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionFor now, we assert that each InstanceKey represents a set of classes which are all of the same concrete type (modulo the fact that all arrays of references are considered concrete type []Object;)final 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.static InstanceKey[]getType()Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.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
-
ConcreteTypeKey
Creates an instance of aConcreteTypeKeyrecord class.- Parameters:
type- the value for thetyperecord component
-
-
Method Details
-
toString
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.Usetype()instead -
concreteType
Description copied from interface:InstanceKeyFor now, we assert that each InstanceKey represents a set of classes which are all of the same concrete type (modulo the fact that all arrays of references are considered concrete type []Object;)- Specified by:
concreteTypein interfaceInstanceKey
-
getInstanceKeysForPEI
- Parameters:
pei- a PEI instructioncha- governing class hierarchy- Returns:
- an array of ConcreteTypeKeys that represent the exceptions the PEI may throw.
- Throws:
IllegalArgumentException- if pei is null
-
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
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
type()instead