@Documented @Target(value=TYPE) @Retention(value=RUNTIME) public @interface SupportedAnnotationTypes
Processor.getSupportedAnnotationTypes()
方法可以从该注释的值构造其结果,如AbstractProcessor.getSupportedAnnotationTypes()
所做 。
只能使用strings conforming to the grammar作为值。
public abstract String[] value
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, 2014, Oracle and/or its affiliates. All rights reserved.