Record Class Selector
java.lang.Object
java.lang.Record
com.ibm.wala.types.Selector
A method selector; something like: foo(Ljava/lang/String;)Ljava/lang/Class;
TODO: Canonicalize these?
-
Constructor Summary
ConstructorsConstructorDescriptionSelector(Atom name, Descriptor descriptor) Creates an instance of aSelectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.getName()Deprecated, for removal: This API element is subject to removal in a future version.Usename()insteadfinal inthashCode()Returns a hash code value for this object.static Selectorstatic Selectorname()Returns the value of thenamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Selector
Creates an instance of aSelectorrecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
make
-
make
-
toString
-
getDescriptor
Deprecated, for removal: This API element is subject to removal in a future version.Usedescriptor()instead -
getName
Deprecated, for removal: This API element is subject to removal in a future version.Usename()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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
descriptor()instead