Module org.glavo.classfile
Package org.glavo.classfile.impl
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 Summary
ConstructorsConstructorDescriptionMethodSignatureImpl(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> throwableSignatures, Signature result, List<Signature> arguments) Creates an instance of aMethodSignatureImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.Returns the raw signature string.Returns the value of thethrowableSignaturesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeParametersrecord component.
-
Constructor Details
-
MethodSignatureImpl
public MethodSignatureImpl(List<Signature.TypeParam> typeParameters, List<Signature.ThrowableSig> throwableSignatures, Signature result, List<Signature> arguments) Creates an instance of aMethodSignatureImplrecord class.- Parameters:
typeParameters- the value for thetypeParametersrecord componentthrowableSignatures- the value for thethrowableSignaturesrecord componentresult- the value for theresultrecord componentarguments- the value for theargumentsrecord component
-
-
Method Details
-
signatureString
Description copied from interface:MethodSignatureReturns the raw signature string.- Specified by:
signatureStringin interfaceMethodSignature- 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 interfaceMethodSignature- Returns:
- the value of the
typeParametersrecord component
-
throwableSignatures
Returns the value of thethrowableSignaturesrecord component.- Specified by:
throwableSignaturesin interfaceMethodSignature- Returns:
- the value of the
throwableSignaturesrecord component
-
result
Returns the value of theresultrecord component.- Specified by:
resultin interfaceMethodSignature- Returns:
- the value of the
resultrecord component
-
arguments
Returns the value of theargumentsrecord component.- Specified by:
argumentsin interfaceMethodSignature- Returns:
- the value of the
argumentsrecord component
-