PaperTsar
PaperTsar

Reputation: 989

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.

Upvotes: 2

Views: 84

Answers (1)

PaperTsar
PaperTsar

Reputation: 989

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

Upvotes: 1

Related Questions