Module java.compiler

Annotation Interface SupportedAnnotationTypes


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface SupportedAnnotationTypes
一个用于指示注解处理器支持哪些注解接口的注解。Processor.getSupportedAnnotationTypes() 方法可以从该注解的值构造其结果,就像AbstractProcessor.getSupportedAnnotationTypes()所做的那样。只应使用符合语法规范的字符串作为值。
自版本:
1.6
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    String[]
    返回受支持的注解接口的名称。
  • Element Details

    • value

      String[] value
      返回受支持的注解接口的名称。
      返回:
      受支持的注解接口的名称