如何查看注解处理产生的Java源码?

How to view the Java source code produced by the annotation processing?

我对处理注释的结果感兴趣,以便深入了解框架(RestEasy 3.0.7-FINAL 在这种情况下)。

Java documentation 说:

the annotation processing happens in a sequence of rounds. On each round, a processor may be asked to process a subset of the annotations found on the source and class files produced by a prior round.

在处理完所有注释后,将编译源代码,因此据我所知,如果我反编译生成的 .class 文件,我应该会看到该过程的结果。但这会导致 Javacode 带有未处理的注释。

如何获取注释处理过程的结果?

注释可以由注释处理器处理,但(如果它们有 @Retention(RUNTIME))也可以在运行时使用反射 API 查询。因此,您可能看不到注释处理的效果,因为没有注释处理。如果有,注释处理器将发出 java 源代码,通常位于名为“.apt_generated”的单独源文件夹中。