Record Class Method.Annotations

java.lang.Object
java.lang.Record
net.covers1624.coffeegrinder.type.Method.Annotations
Enclosing class:
Method

public static record Method.Annotations(List<Annotation> methodAnnotations, AnnotatedType returnType, List<AnnotatedTypeParameter> typeParameters, @Nullable AnnotatedType receiverType, List<AnnotatedType> declaredExceptions) extends Record
  • Constructor Details

    • Annotations

      public Annotations(List<Annotation> methodAnnotations, AnnotatedType returnType, List<AnnotatedTypeParameter> typeParameters, @Nullable @Nullable AnnotatedType receiverType, List<AnnotatedType> declaredExceptions)
      Creates an instance of a Annotations record class.
      Parameters:
      methodAnnotations - the value for the methodAnnotations record component
      returnType - the value for the returnType record component
      typeParameters - the value for the typeParameters record component
      receiverType - the value for the receiverType record component
      declaredExceptions - the value for the declaredExceptions record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • toString

      public final 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • methodAnnotations

      public List<Annotation> methodAnnotations()
      Returns the value of the methodAnnotations record component.
      Returns:
      the value of the methodAnnotations record component
    • returnType

      public AnnotatedType returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component
    • typeParameters

      public List<AnnotatedTypeParameter> typeParameters()
      Returns the value of the typeParameters record component.
      Returns:
      the value of the typeParameters record component
    • receiverType

      @Nullable public @Nullable AnnotatedType receiverType()
      Returns the value of the receiverType record component.
      Returns:
      the value of the receiverType record component
    • declaredExceptions

      public List<AnnotatedType> declaredExceptions()
      Returns the value of the declaredExceptions record component.
      Returns:
      the value of the declaredExceptions record component