Interface RecordComponentDescription.ForLoadedRecordComponent.RecordComponent

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getAccessor​(java.lang.Object value)
      Resolves a record component's accessor method.
      java.lang.reflect.AnnotatedElement getAnnotatedType​(java.lang.Object value)
      Resolves a record component's annotated type.
      java.lang.Class<?> getDeclaringRecord​(java.lang.Object value)
      Resolves a record component's declaring type.
      java.lang.String getGenericSignature​(java.lang.Object value)
      Returns the record component type's generic signature.
      java.lang.reflect.Type getGenericType​(java.lang.Object value)
      Resolves a record component's generic type.
      java.lang.String getName​(java.lang.Object value)
      Resolves a record component's name.
      java.lang.Class<?> getType​(java.lang.Object value)
      Resolves a record component's type.
      boolean isInstance​(java.lang.Object instance)
      Checks if the supplied instance is a record component.
    • Method Detail

      • isInstance

        @Instance
        boolean isInstance​(java.lang.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

        java.lang.String getName​(java.lang.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

        java.lang.Class<?> getDeclaringRecord​(java.lang.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

        java.lang.reflect.Method getAccessor​(java.lang.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

        java.lang.Class<?> getType​(java.lang.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

        java.lang.reflect.Type getGenericType​(java.lang.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
        java.lang.String getGenericSignature​(java.lang.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

        java.lang.reflect.AnnotatedElement getAnnotatedType​(java.lang.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.