Record Class AbstractInitializableBeanIntrospection.BeanPropertyMemberRef

java.lang.Object
java.lang.Record
io.micronaut.inject.beans.AbstractInitializableBeanIntrospection.BeanPropertyMemberRef
Record Components:
elementType - The kind of the member, either ElementType.FIELD or ElementType.METHOD
declaringType - The type declaring the member, by name when the generated code cannot name it
name - The name of the member
argument - The type of the member including its own annotation metadata
readMethodIndex - The dispatch index used to read the member, or -1 if it cannot be read
Enclosing class:
AbstractInitializableBeanIntrospection<B>

@Internal public static record AbstractInitializableBeanIntrospection.BeanPropertyMemberRef(ElementType elementType, AnnotationClassValue<?> declaringType, String name, Argument<?> argument, int readMethodIndex) extends Record
Bean property member compile-time data container.
Since:
5.2.0
Author:
Denis Stepanov
  • Constructor Details

    • BeanPropertyMemberRef

      public BeanPropertyMemberRef(ElementType elementType, Class<?> declaringType, String name, Argument<?> argument, int readMethodIndex)
      The shape the generated code named the declaring type by before it was carried as a class value; kept for the introspections compiled against it.
      Parameters:
      elementType - The kind of the member
      declaringType - The type declaring the member
      name - The name of the member
      argument - The type of the member including its own annotation metadata
      readMethodIndex - The dispatch index used to read the member, or -1 if it cannot be read
    • BeanPropertyMemberRef

      public BeanPropertyMemberRef(ElementType elementType, AnnotationClassValue<?> declaringType, String name, Argument<?> argument, int readMethodIndex)
      Creates an instance of a BeanPropertyMemberRef record class.
      Parameters:
      elementType - the value for the elementType record component
      declaringType - the value for the declaringType record component
      name - the value for the name record component
      argument - the value for the argument record component
      readMethodIndex - the value for the readMethodIndex record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • elementType

      public ElementType elementType()
      Returns the value of the elementType record component.
      Returns:
      the value of the elementType record component
    • declaringType

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

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • argument

      public Argument<?> argument()
      Returns the value of the argument record component.
      Returns:
      the value of the argument record component
    • readMethodIndex

      public int readMethodIndex()
      Returns the value of the readMethodIndex record component.
      Returns:
      the value of the readMethodIndex record component