Package io.micronaut.context
Record Class AbstractExecutableMethodsDefinition.MethodReference
java.lang.Object
java.lang.Record
io.micronaut.context.AbstractExecutableMethodsDefinition.MethodReference
- Record Components:
declaringType- The declaring typeannotationMetadata- The metadatamethodName- The method namereturnArgument- The return argumentarguments- The argumentsisAbstract- Is abstractisSuspend- Is suspend
- Enclosing class:
- AbstractExecutableMethodsDefinition<T>
public static record AbstractExecutableMethodsDefinition.MethodReference(Class<?> declaringType, AnnotationMetadata annotationMetadata, String methodName, @Nullable Argument<?> returnArgument, Argument<?>[] arguments, boolean isAbstract, boolean isSuspend)
extends Record
Internal class representing method's metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodReference(Class<?> declaringType, AnnotationMetadata annotationMetadata, String methodName, Argument<?> returnArgument, Argument<?>[] arguments, boolean isAbstract, boolean isSuspend) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationMetadatarecord component.Argument<?>[]Returns the value of theargumentsrecord component.Class<?>Returns the value of thedeclaringTyperecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAbstractrecord component.booleanReturns the value of theisSuspendrecord component.Returns the value of themethodNamerecord component.Returns the value of thereturnArgumentrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MethodReference
public MethodReference(Class<?> declaringType, AnnotationMetadata annotationMetadata, String methodName, Argument<?> returnArgument, Argument<?>[] arguments, boolean isAbstract, boolean isSuspend) The constructor.- Parameters:
declaringType- The declaring typeannotationMetadata- The metadatamethodName- The method namereturnArgument- The return argumentarguments- The argumentsisAbstract- Is abstractisSuspend- Is suspend
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
declaringType
Returns the value of thedeclaringTyperecord component.- Returns:
- the value of the
declaringTyperecord component
-
annotationMetadata
Returns the value of theannotationMetadatarecord component.- Returns:
- the value of the
annotationMetadatarecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
returnArgument
Returns the value of thereturnArgumentrecord component.- Returns:
- the value of the
returnArgumentrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
isAbstract
public boolean isAbstract()Returns the value of theisAbstractrecord component.- Returns:
- the value of the
isAbstractrecord component
-
isSuspend
public boolean isSuspend()Returns the value of theisSuspendrecord component.- Returns:
- the value of the
isSuspendrecord component
-