Search code examples
javaannotationsannotation-processing

Refering to classes created by annotation processing in Java


Is it possible to refer to a class created by an annotation processor?

So in the sourcecode something like this:

GeneratedClass obj = new GeneratedClass();

GeneratedClass is not in the sorucefiles, but it will be generated by an annotation processor.


Solution

  • It seems that I have been wrong. Refering to generated classes directly is possible.