Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class SignaturesImpl.ClassSignatureImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.SignaturesImpl.ClassSignatureImpl
- All Implemented Interfaces:
ClassSignature
- Enclosing class:
SignaturesImpl
public static record SignaturesImpl.ClassSignatureImpl(List<Signature.TypeParam> typeParameters, Signature.ClassTypeSig superclassSignature, List<Signature.ClassTypeSig> superinterfaceSignatures)
extends Record
implements ClassSignature
-
Constructor Summary
ConstructorsConstructorDescriptionClassSignatureImpl(List<Signature.TypeParam> typeParameters, Signature.ClassTypeSig superclassSignature, List<Signature.ClassTypeSig> superinterfaceSignatures) Creates an instance of aClassSignatureImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the raw signature string.Returns the value of thesuperclassSignaturerecord component.Returns the value of thesuperinterfaceSignaturesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
ClassSignatureImpl
public ClassSignatureImpl(List<Signature.TypeParam> typeParameters, Signature.ClassTypeSig superclassSignature, List<Signature.ClassTypeSig> superinterfaceSignatures) Creates an instance of aClassSignatureImplrecord class.- Parameters:
typeParameters- the value for thetypeParametersrecord componentsuperclassSignature- the value for thesuperclassSignaturerecord componentsuperinterfaceSignatures- the value for thesuperinterfaceSignaturesrecord component
-
-
Method Details
-
signatureString
Description copied from interface:ClassSignatureReturns the raw signature string.- Specified by:
signatureStringin interfaceClassSignature- Returns:
- the raw signature string
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
typeParameters
Returns the value of thetypeParametersrecord component.- Specified by:
typeParametersin interfaceClassSignature- Returns:
- the value of the
typeParametersrecord component
-
superclassSignature
Returns the value of thesuperclassSignaturerecord component.- Specified by:
superclassSignaturein interfaceClassSignature- Returns:
- the value of the
superclassSignaturerecord component
-
superinterfaceSignatures
Returns the value of thesuperinterfaceSignaturesrecord component.- Specified by:
superinterfaceSignaturesin interfaceClassSignature- Returns:
- the value of the
superinterfaceSignaturesrecord component
-