Interface TypeDescription.Generic.AnnotationReader

    • Method Detail

      • resolve

        java.lang.reflect.AnnotatedElement resolve()
        Resolves the underlying AnnotatedElement.
        Returns:
        The underlying annotated element.
      • asList

        AnnotationList asList()
        Returns the underlying type annotations as a list.
        Returns:
        The underlying type annotations as a list.
      • ofWildcardUpperBoundType

        TypeDescription.Generic.AnnotationReader ofWildcardUpperBoundType​(int index)
        Returns a reader for type annotations of an represented element's wildcard upper bound.
        Parameters:
        index - The wildcard bound's index.
        Returns:
        An annotation reader for the underlying annotated upper bound.
      • ofWildcardLowerBoundType

        TypeDescription.Generic.AnnotationReader ofWildcardLowerBoundType​(int index)
        Returns a reader for type annotations of an represented element's wildcard lower bound.
        Parameters:
        index - The wildcard bound's index.
        Returns:
        An annotation reader for the underlying annotated lower bound.
      • ofTypeVariableBoundType

        TypeDescription.Generic.AnnotationReader ofTypeVariableBoundType​(int index)
        Returns a reader for type annotations of a type variable's bound.
        Parameters:
        index - The bound's index.
        Returns:
        An annotation reader for the underlying annotated bound.
      • ofTypeArgument

        TypeDescription.Generic.AnnotationReader ofTypeArgument​(int index)
        Returns a reader for type annotations of a parameterized type's type argument.
        Parameters:
        index - The bound's index.
        Returns:
        An annotation reader for the underlying annotated bound..
      • ofOwnerType

        TypeDescription.Generic.AnnotationReader ofOwnerType()

        Returns a reader for type annotations of a parameterized type's owner type.

        Important: This feature is not currently implemented by the Java reflection API.

        Returns:
        An annotation reader for the underlying owner type.
      • ofOuterClass

        TypeDescription.Generic.AnnotationReader ofOuterClass()

        Returns a reader for type annotations of an inner class type's outer type.

        Important: This feature is not currently implemented by the Java reflection API.

        Returns:
        An annotation reader for the underlying owner type.
      • ofComponentType

        TypeDescription.Generic.AnnotationReader ofComponentType()
        Returns a reader for type annotations of an array's component type.
        Returns:
        An annotation reader for the underlying component type.