Record Class AbstractExecutableMethodsDefinition.MethodReference

java.lang.Object
java.lang.Record
io.micronaut.context.AbstractExecutableMethodsDefinition.MethodReference
Record Components:
declaringType - The declaring type
annotationMetadata - The metadata
methodName - The method name
returnArgument - The return argument
arguments - The arguments
isAbstract - Is abstract
isSuspend - 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 Details

    • MethodReference

      public MethodReference(Class<?> declaringType, AnnotationMetadata annotationMetadata, String methodName, Argument<?> returnArgument, Argument<?>[] arguments, boolean isAbstract, boolean isSuspend)
      The constructor.
      Parameters:
      declaringType - The declaring type
      annotationMetadata - The metadata
      methodName - The method name
      returnArgument - The return argument
      arguments - The arguments
      isAbstract - Is abstract
      isSuspend - Is suspend
  • Method Details

    • equals

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public 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
    • declaringType

      public Class<?> declaringType()
      Returns the value of the declaringType record component.
      Returns:
      the value of the declaringType record component
    • annotationMetadata

      public AnnotationMetadata annotationMetadata()
      Returns the value of the annotationMetadata record component.
      Returns:
      the value of the annotationMetadata record component
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • returnArgument

      @Nullable public @Nullable Argument<?> returnArgument()
      Returns the value of the returnArgument record component.
      Returns:
      the value of the returnArgument record component
    • arguments

      public Argument<?>[] arguments()
      Returns the value of the arguments record component.
      Returns:
      the value of the arguments record component
    • isAbstract

      public boolean isAbstract()
      Returns the value of the isAbstract record component.
      Returns:
      the value of the isAbstract record component
    • isSuspend

      public boolean isSuspend()
      Returns the value of the isSuspend record component.
      Returns:
      the value of the isSuspend record component