Module java.base

Interface AnnotatedArrayType

所有超级接口:
AnnotatedElement, AnnotatedType

public interface AnnotatedArrayType extends AnnotatedType
AnnotatedArrayType表示数组类型的潜在注解使用,其组件类型本身可能表示类型的注解使用。
参见 Java语言规范:
10.1 数组类型
自Java版本:
1.8
  • Method Details

    • getAnnotatedGenericComponentType

      AnnotatedType getAnnotatedGenericComponentType()
      返回此数组类型的潜在注解通用组件类型。
      返回:
      此数组类型的潜在注解通用组件类型
      参见:
    • getAnnotatedOwnerType

      AnnotatedType getAnnotatedOwnerType()
      返回此类型是其成员的潜在注解类型,如果此类型表示嵌套类或接口。例如,如果此类型是 @TA O<T>.I<S>,返回表示 @TA O<T> 的表示。

      对于是 AnnotatedArrayType 实例的 AnnotatedType,返回 null

      指定者:
      getAnnotatedOwnerType 在接口 AnnotatedType
      返回:
      null
      自Java版本:
      9