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.RefTypeSig superclassSignature, List<Signature.RefTypeSig> superinterfaceSignatures) extends Record implements ClassSignature
  • Constructor Details

    • ClassSignatureImpl

      public ClassSignatureImpl(List<Signature.TypeParam> typeParameters, Signature.RefTypeSig superclassSignature, List<Signature.RefTypeSig> superinterfaceSignatures)
      Creates an instance of a ClassSignatureImpl record class.
      Parameters:
      typeParameters - the value for the typeParameters record component
      superclassSignature - the value for the superclassSignature record component
      superinterfaceSignatures - the value for the superinterfaceSignatures record component
  • Method Details

    • signatureString

      public String signatureString()
      Description copied from interface: ClassSignature
      Returns the raw signature string.
      Specified by:
      signatureString in interface ClassSignature
      Returns:
      the raw signature string
    • toString

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • typeParameters

      public List<Signature.TypeParam> typeParameters()
      Returns the value of the typeParameters record component.
      Specified by:
      typeParameters in interface ClassSignature
      Returns:
      the value of the typeParameters record component
    • superclassSignature

      public Signature.RefTypeSig superclassSignature()
      Returns the value of the superclassSignature record component.
      Specified by:
      superclassSignature in interface ClassSignature
      Returns:
      the value of the superclassSignature record component
    • superinterfaceSignatures

      public List<Signature.RefTypeSig> superinterfaceSignatures()
      Returns the value of the superinterfaceSignatures record component.
      Specified by:
      superinterfaceSignatures in interface ClassSignature
      Returns:
      the value of the superinterfaceSignatures record component