Record Class AbstractInitializableBeanIntrospection.BeanPropertyMemberRef
java.lang.Object
java.lang.Record
io.micronaut.inject.beans.AbstractInitializableBeanIntrospection.BeanPropertyMemberRef
- Record Components:
elementType- The kind of the member, eitherElementType.FIELDorElementType.METHODdeclaringType- The type declaring the member, by name when the generated code cannot name itname- The name of the memberargument- The type of the member including its own annotation metadatareadMethodIndex- The dispatch index used to read the member, or-1if 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 Summary
ConstructorsConstructorDescriptionBeanPropertyMemberRef(ElementType elementType, AnnotationClassValue<?> declaringType, String name, Argument<?> argument, int readMethodIndex) Creates an instance of aBeanPropertyMemberRefrecord class.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. -
Method Summary
Modifier and TypeMethodDescriptionArgument<?> argument()Returns the value of theargumentrecord component.Returns the value of thedeclaringTyperecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thereadMethodIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
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 memberdeclaringType- The type declaring the membername- The name of the memberargument- The type of the member including its own annotation metadatareadMethodIndex- The dispatch index used to read the member, or-1if it cannot be read
-
BeanPropertyMemberRef
public BeanPropertyMemberRef(ElementType elementType, AnnotationClassValue<?> declaringType, String name, Argument<?> argument, int readMethodIndex) Creates an instance of aBeanPropertyMemberRefrecord class.- Parameters:
elementType- the value for theelementTyperecord componentdeclaringType- the value for thedeclaringTyperecord componentname- the value for thenamerecord componentargument- the value for theargumentrecord componentreadMethodIndex- the value for thereadMethodIndexrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. -
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
declaringType
Returns the value of thedeclaringTyperecord component.- Returns:
- the value of the
declaringTyperecord component
-
name
-
argument
-
readMethodIndex
public int readMethodIndex()Returns the value of thereadMethodIndexrecord component.- Returns:
- the value of the
readMethodIndexrecord component
-