Record Class GlobalObjectKey
java.lang.Object
java.lang.Record
com.ibm.wala.cast.ipa.callgraph.GlobalObjectKey
- All Implemented Interfaces:
ContextItem, InstanceKey
Represents the JavaScript global object.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Constructor Summary
ConstructorsConstructorDescriptionGlobalObjectKey(IClass concreteType) Creates an instance of aGlobalObjectKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcreteTyperecord component.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.final inthashCode()Returns a hash code value for this object.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.
-
Constructor Details
-
GlobalObjectKey
Creates an instance of aGlobalObjectKeyrecord class.- Parameters:
concreteType- the value for theconcreteTyperecord component
-
-
Method Details
-
toString
-
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). -
concreteType
Returns the value of theconcreteTyperecord component.- Specified by:
concreteTypein interfaceInstanceKey- Returns:
- the value of the
concreteTyperecord component
-
InstanceKey.concreteType()instead