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
ConstructorDescriptionMethodReference
(Class<?> declaringType, AnnotationMetadata annotationMetadata, String methodName, Argument<?> returnArgument, Argument<?>[] arguments, boolean isAbstract, boolean isSuspend) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationMetadata
record component.Argument<?>[]
Returns the value of thearguments
record component.Class<?>
Returns the value of thedeclaringType
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisAbstract
record component.boolean
Returns the value of theisSuspend
record component.Returns the value of themethodName
record component.Returns the value of thereturnArgument
record 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 thedeclaringType
record component.- Returns:
- the value of the
declaringType
record component
-
annotationMetadata
Returns the value of theannotationMetadata
record component.- Returns:
- the value of the
annotationMetadata
record component
-
methodName
Returns the value of themethodName
record component.- Returns:
- the value of the
methodName
record component
-
returnArgument
Returns the value of thereturnArgument
record component.- Returns:
- the value of the
returnArgument
record component
-
arguments
Returns the value of thearguments
record component.- Returns:
- the value of the
arguments
record component
-
isAbstract
public boolean isAbstract()Returns the value of theisAbstract
record component.- Returns:
- the value of the
isAbstract
record component
-
isSuspend
public boolean isSuspend()Returns the value of theisSuspend
record component.- Returns:
- the value of the
isSuspend
record component
-