Record Class SignaturesImpl.MethodSignatureImpl

java.lang.Object
java.lang.Record
org.glavo.classfile.impl.SignaturesImpl.MethodSignatureImpl
All Implemented Interfaces:
MethodSignature
Enclosing class:
SignaturesImpl

public static record SignaturesImpl.MethodSignatureImpl(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> throwableSignatures, Signature result, List<Signature> arguments) extends Record implements MethodSignature
  • Constructor Details

    • MethodSignatureImpl

      public MethodSignatureImpl(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> throwableSignatures, Signature result, List<Signature> arguments)
      Creates an instance of a MethodSignatureImpl record class.
      Parameters:
      typeParameters - the value for the typeParameters record component
      throwableSignatures - the value for the throwableSignatures record component
      result - the value for the result record component
      arguments - the value for the arguments record component
  • Method Details

    • signatureString

      public String signatureString()
      Description copied from interface: MethodSignature
      Returns the raw signature string.
      Specified by:
      signatureString in interface MethodSignature
      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 MethodSignature
      Returns:
      the value of the typeParameters record component
    • throwableSignatures

      public List<Signature.ThrowableSig> throwableSignatures()
      Returns the value of the throwableSignatures record component.
      Specified by:
      throwableSignatures in interface MethodSignature
      Returns:
      the value of the throwableSignatures record component
    • result

      public Signature result()
      Returns the value of the result record component.
      Specified by:
      result in interface MethodSignature
      Returns:
      the value of the result record component
    • arguments

      public List<Signature> arguments()
      Returns the value of the arguments record component.
      Specified by:
      arguments in interface MethodSignature
      Returns:
      the value of the arguments record component