- 所有超级接口:
-
AnnotatedElement,AnnotatedType
AnnotatedArrayType表示数组类型的潜在注解使用,其组件类型本身可能表示类型的注解使用。
- 参见 Java语言规范:
-
10.1 数组类型
- 自Java版本:
- 1.8
-
Method Summary
Modifier and TypeMethodDescription返回此数组类型的潜在注解通用组件类型。返回此类型是其成员的潜在注解类型,如果此类型表示嵌套类或接口。Methods declared in interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentMethods declared in interface java.lang.reflect.AnnotatedType
getAnnotation, getAnnotations, getDeclaredAnnotations, getType
-
Method Details
-
getAnnotatedGenericComponentType
AnnotatedType getAnnotatedGenericComponentType()返回此数组类型的潜在注解通用组件类型。- 返回:
- 此数组类型的潜在注解通用组件类型
- 参见:
-
getAnnotatedOwnerType
AnnotatedType getAnnotatedOwnerType()返回此类型是其成员的潜在注解类型,如果此类型表示嵌套类或接口。例如,如果此类型是@TA O<T>.I<S>,返回表示@TA O<T>的表示。对于是
AnnotatedArrayType实例的AnnotatedType,返回null。- 指定者:
-
getAnnotatedOwnerType在接口AnnotatedType - 返回:
-
null - 自Java版本:
- 9
-