42 */
43 AnnotatedType[] getAnnotatedActualTypeArguments();
44
45 /**
46 * Returns the potentially annotated type that this type is a member of, if
47 * this type represents a nested type. For example, if this type is
48 * {@code @TA O<T>.I<S>}, return a representation of {@code @TA O<T>}.
49 *
50 * <p>Returns {@code null} if this {@code AnnotatedType} represents a
51 * top-level type, or a local or anonymous class, or a primitive type, or
52 * void.
53 *
54 * @return an {@code AnnotatedType} object representing the potentially
55 * annotated type that this type is a member of, or {@code null}
56 * @throws TypeNotPresentException if the owner type
57 * refers to a non-existent type declaration
58 * @throws MalformedParameterizedTypeException if the owner type
59 * refers to a parameterized type that cannot be instantiated
60 * for any reason
61 *
62 * @since 1.9
63 */
64 @Override
65 AnnotatedType getAnnotatedOwnerType();
66 }
|
42 */
43 AnnotatedType[] getAnnotatedActualTypeArguments();
44
45 /**
46 * Returns the potentially annotated type that this type is a member of, if
47 * this type represents a nested type. For example, if this type is
48 * {@code @TA O<T>.I<S>}, return a representation of {@code @TA O<T>}.
49 *
50 * <p>Returns {@code null} if this {@code AnnotatedType} represents a
51 * top-level type, or a local or anonymous class, or a primitive type, or
52 * void.
53 *
54 * @return an {@code AnnotatedType} object representing the potentially
55 * annotated type that this type is a member of, or {@code null}
56 * @throws TypeNotPresentException if the owner type
57 * refers to a non-existent type declaration
58 * @throws MalformedParameterizedTypeException if the owner type
59 * refers to a parameterized type that cannot be instantiated
60 * for any reason
61 *
62 * @since 9
63 */
64 @Override
65 AnnotatedType getAnnotatedOwnerType();
66 }
|