Using Lombok to generate code with Eclipse/Maven. Would like to be able to view in text the class which is being generated. Hunted around under target but did not see anything. Is there a way to have Lombok output the generated class?
2 Answers
2 Comments
As described here in eclipse you can see the signature of the lombok generated methods in the outline view. Shortcut: highlight the lombok annotated type and press ctrl-o. You can also open an outline view permanently with window/show view/outline.
BTW: In intellij with the lombok annotated type highlighted you can press shift twice to open the search all dialog. The .class resource is among the items in the search result list. If you select that item a tab opens with the decompiled code. Make sure the target directory of your project is not excluded (see details here).
edit: for intellij here is an improved description on how to view .class files.
In both cases it is mandatory of course, that lombok generation (for example with maven) took place beforehand.
