Record Class ConstantPoolParser.ReferenceToken
java.lang.Object
java.lang.Record
com.ibm.wala.shrike.shrikeCT.ConstantPoolParser.ReferenceToken
- Enclosing class:
ConstantPoolParser
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceToken(byte kind, String className, String elementName, String descriptor) Creates an instance of aReferenceTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of thedescriptorrecord component.Returns the value of theelementNamerecord 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.Deprecated, for removal: This API element is subject to removal in a future version.Usedescriptor()insteadDeprecated, for removal: This API element is subject to removal in a future version.UseelementName()insteadbytegetKind()Deprecated, for removal: This API element is subject to removal in a future version.Usekind()insteadinthashCode()Returns a hash code value for this object.bytekind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReferenceToken
Creates an instance of aReferenceTokenrecord class.- Parameters:
kind- the value for thekindrecord componentclassName- the value for theclassNamerecord componentelementName- the value for theelementNamerecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
getKind
Deprecated, for removal: This API element is subject to removal in a future version.Usekind()instead -
getClassName
Deprecated, for removal: This API element is subject to removal in a future version.UseclassName()instead -
getElementName
Deprecated, for removal: This API element is subject to removal in a future version.UseelementName()instead -
getDescriptor
Deprecated, for removal: This API element is subject to removal in a future version.Usedescriptor()instead -
hashCode
-
toString
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
public byte kind()Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
elementName
Returns the value of theelementNamerecord component.- Returns:
- the value of the
elementNamerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
className()instead