Interface RecordComponentDescription.ForLoadedRecordComponent.Dispatcher

    • Method Detail

      • isInstance

        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.
      • getRecordComponents

        Object[] getRecordComponents​(Class<?> type)
        Resolves a type's record components.
        Parameters:
        type - The type for which to read the record components.
        Returns:
        An array of all declared record components.
      • isRecord

        boolean isRecord​(Class<?> type)
        Checks if the supplied type is a record.
        Parameters:
        type - The type to resolve.
        Returns:
        true if the supplied type is a record.
      • getName

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

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

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

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

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

        String getGenericSignature​(Object recordComponent)
        Returns the record component type's generic signature.
        Parameters:
        recordComponent - 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 recordComponent)
        Resolves a record component's annotated type.
        Parameters:
        recordComponent - The record component to resolve the annotated type for.
        Returns:
        The record component's annotated type.