Skip to main content

How can an AnnotationProcessor generate boilerplate in Java existing source

1 reply [Last post]
charlweed
Offline
Joined: 2006-05-05

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
charlweed
Offline
Joined: 2006-05-05

Well, after reading the forums at
http://forums.sun.com/forum.jspa?forumID=514

It looks like the answer is
[b]They Cheat[/b]

The correct way is to use a generated superclass or subclass.

However, at least one person ( pfnguyen ) has used the com.sun.source.tree.* and com.sun.source.util.* to do what I think what I want. But I have not seen the code.