AnnotatedElement
, AnnotatedType
public interface AnnotatedParameterizedType extends AnnotatedType
AnnotatedParameterizedType
represents the potentially annotated use
of a parameterized type, whose type arguments may themselves represent
annotated uses of types.Modifier and Type | Method | Description |
---|---|---|
AnnotatedType[] |
getAnnotatedActualTypeArguments() |
Returns the potentially annotated actual type arguments of this parameterized type.
|
AnnotatedType |
getAnnotatedOwnerType() |
Returns the potentially annotated type that this type is a member of, if
this type represents a nested type.
|
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
getType
AnnotatedType[] getAnnotatedActualTypeArguments()
ParameterizedType.getActualTypeArguments()
AnnotatedType getAnnotatedOwnerType()
@TA O<T>.I<S>
, return a representation of @TA O<T>
.
Returns null
if this AnnotatedType
represents a
top-level type, or a local or anonymous class, or a primitive type, or
void.
getAnnotatedOwnerType
in interface AnnotatedType
AnnotatedType
object representing the potentially
annotated type that this type is a member of, or null
TypeNotPresentException
- if the owner type
refers to a non-existent type declarationMalformedParameterizedTypeException
- if the owner type
refers to a parameterized type that cannot be instantiated
for any reason Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps