Interface RecordComponentDescription.ForLoadedRecordComponent.RecordComponent

Enclosing class:
RecordComponentDescription.ForLoadedRecordComponent

@Proxied("java.lang.reflect.RecordComponent") protected static interface RecordComponentDescription.ForLoadedRecordComponent.RecordComponent
A dispatcher for accessing methods of java.lang.reflect.RecordComponent.
  • Method Details

    • isInstance

      @Instance boolean isInstance(Object instance)
      Checks if the supplied instance is a record component.
      Parameters:
      instance - The instance to evaluate.
      Returns:
      true if the supplied instance is a record component.
    • getName

      String getName(Object value)
      Resolves a record component's name.
      Parameters:
      value - The record component to resolve the name for.
      Returns:
      The record component's name.
    • getDeclaringRecord

      Class<?> getDeclaringRecord(Object value)
      Resolves a record component's declaring type.
      Parameters:
      value - The record component to resolve the declared type for.
      Returns:
      The record component's declaring type.
    • getAccessor

      Method getAccessor(Object value)
      Resolves a record component's accessor method.
      Parameters:
      value - The record component to resolve the accessor method for.
      Returns:
      The record component's accessor method.
    • getType

      Class<?> getType(Object value)
      Resolves a record component's type.
      Parameters:
      value - The record component to resolve the type for.
      Returns:
      The record component's type.
    • getGenericType

      Type getGenericType(Object value)
      Resolves a record component's generic type.
      Parameters:
      value - The record component to resolve the generic type for.
      Returns:
      The record component's generic type.
    • getGenericSignature

      @MaybeNull String getGenericSignature(Object value)
      Returns the record component type's generic signature.
      Parameters:
      value - The record component to resolve the generic signature for.
      Returns:
      The record component type's generic signature or null if no signature is defined.
    • getAnnotatedType

      AnnotatedElement getAnnotatedType(Object value)
      Resolves a record component's annotated type.
      Parameters:
      value - The record component to resolve the annotated type for.
      Returns:
      The record component's annotated type.