< prev index next >

jdk/src/java.base/share/classes/java/lang/reflect/AnnotatedWildcardType.java

Print this page




  48     /**
  49      * Returns the potentially annotated upper bounds of this wildcard type.
  50      * If no upper bound is explicitly declared, the upper bound is
  51      * unannotated {@code Object}
  52      *
  53      * @return the potentially annotated upper bounds of this wildcard type
  54      * @see WildcardType#getUpperBounds()
  55      */
  56     AnnotatedType[] getAnnotatedUpperBounds();
  57 
  58     /**
  59      * Returns the potentially annotated type that this type is a member of, if
  60      * this type represents a nested type. For example, if this type is
  61      * {@code @TA O<T>.I<S>}, return a representation of {@code @TA O<T>}.
  62      *
  63      * <p>Returns {@code null} for an {@code AnnotatedType} that is an instance
  64      *     of {@code AnnotatedWildcardType}.
  65      *
  66      * @return {@code null}
  67      *
  68      * @since 1.9
  69      */
  70     @Override
  71     AnnotatedType getAnnotatedOwnerType();
  72 }


  48     /**
  49      * Returns the potentially annotated upper bounds of this wildcard type.
  50      * If no upper bound is explicitly declared, the upper bound is
  51      * unannotated {@code Object}
  52      *
  53      * @return the potentially annotated upper bounds of this wildcard type
  54      * @see WildcardType#getUpperBounds()
  55      */
  56     AnnotatedType[] getAnnotatedUpperBounds();
  57 
  58     /**
  59      * Returns the potentially annotated type that this type is a member of, if
  60      * this type represents a nested type. For example, if this type is
  61      * {@code @TA O<T>.I<S>}, return a representation of {@code @TA O<T>}.
  62      *
  63      * <p>Returns {@code null} for an {@code AnnotatedType} that is an instance
  64      *     of {@code AnnotatedWildcardType}.
  65      *
  66      * @return {@code null}
  67      *
  68      * @since 9
  69      */
  70     @Override
  71     AnnotatedType getAnnotatedOwnerType();
  72 }
< prev index next >