Class TypeDescription.Generic.AnnotationReader.ForOwnerType

    • Field Detail

      • GET_ANNOTATED_OWNER_TYPE

        private static final java.lang.reflect.Method GET_ANNOTATED_OWNER_TYPE
        The java.lang.reflect.AnnotatedType#getAnnotatedOwnerType method.
    • Constructor Detail

      • ForOwnerType

        protected ForOwnerType​(TypeDescription.Generic.AnnotationReader annotationReader)
        Creates a chained annotation reader for reading an owner type if it is accessible.
        Parameters:
        annotationReader - The annotation reader from which to delegate.
    • Method Detail

      • of

        private static TypeDescription.Generic.AnnotationReader of​(TypeDescription.Generic.AnnotationReader annotationReader)
        Creates a chained annotation reader for reading an owner type if it is accessible. This method checks if annotated owner types are available on the executing VM (Java 9+). If this is not the case, a non-operational annotation reader is returned.
        Parameters:
        annotationReader - The annotation reader from which to delegate.
        Returns:
        An annotation reader for the resolved type's owner type.