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.
- Since:
- 3.0
- Author:
- Denis Stepanov
-
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.@Nullable Argument<?> 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 thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
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
-
isAbstract
public boolean isAbstract()Returns the value of theisAbstractrecord component.- Returns:
- the value of the
isAbstractrecord component
-
isSuspend
-