Record Class JavaTypeContext
java.lang.Object
java.lang.Record
com.ibm.wala.analysis.reflection.JavaTypeContext
- All Implemented Interfaces:
Context, ContextItem
Implements a Context which corresponds to a given type abstraction. Thus, this maps the name
"TYPE" to a JavaTypeAbstraction. TODO This context maps
ContextKey.RECEIVER to a TypeAbstraction.-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aJavaTypeContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(ContextKey name) 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.
-
Constructor Details
-
JavaTypeContext
Creates an instance of aJavaTypeContextrecord class.- Parameters:
type- the value for thetyperecord component
-
-
Method Details
-
get
-
toString
-
getType
Deprecated, for removal: This API element is subject to removal in a future version.Usetype()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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
type()instead