模块 java.compiler

注解支持的AnnotationTypes


@Documented @Target (TYPE ) @Retention (RUNTIME ) public @interface SupportedAnnotationTypes
用于指示注解处理器支持哪些注释接口的注释。 Processor.getSupportedAnnotationTypes() 方法可以根据此注释的值构造其结果,就像 AbstractProcessor.getSupportedAnnotationTypes() 所做的那样。只能将 符合语法的字符串 用作值。
自从:
1.6
  • 必需元素摘要

    必需的元素
    修饰符和类型
    必需元素
    描述
    返回支持的注解的名称。
  • 元素详细信息

    • value

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