I am currently building an API that I will be asking a number of developers to use. Most of it is straightforward, but there are a couple of api calls that are complex in nature, but should be used in pretty much a boilerplate way.
What I would like to do is to generate the boilerplate code inside of the classes, maybe by marking some annotations, but those generated methods to be available within Eclipse/IntelliJ for the developer to see. I looked at Javassist, but not sure that the runtime nature is a good thing. I would rather a compile time approach.
If possible, I would like the implemented code to be hidden (i.e. I don't want the developers to try to change the code of the generated methods, as they will be over written on recompile).
This whole thing is done in an effort to hide the complexity of the processing away from the developers and maintainers, and keep it in the core framework code only.