我正在尝试实现AnnotationProcessor
。 我正在按照这个教程进行操作。
我能够调试注解处理器,调试器会进入方法:init
、getSupportedAnnotationTypes
、getSupportedOptions
以及getSupportedSourceVersion
,但是不会进入process
方法。
我在互联网上找不到有用的信息。你能告诉我为什么会出现这种情况以及如何修复吗?
谢谢。
我正在尝试实现AnnotationProcessor
。 我正在按照这个教程进行操作。
我能够调试注解处理器,调试器会进入方法:init
、getSupportedAnnotationTypes
、getSupportedOptions
以及getSupportedSourceVersion
,但是不会进入process
方法。
我在互联网上找不到有用的信息。你能告诉我为什么会出现这种情况以及如何修复吗?
谢谢。
process
方法,至少必须有一个元素被注释为在getSupportedAnnotationTypes
中设置的注释之一。