I am facing the following issue: I need to develop custom Lombok annotation handlers, and these handlers should inject quite complex methods into the objects. Since it's a research project, the content of the method is likely to change and I'm looking for a way to automate some manual tasks.
As well described in this post, the greatest pain in the process of creating custom handlers is two implement twice, once for Eclipse and once for Javac, the AST injection code that add the method statements.
So my question is the following: are there any tools/projects around that takes as input a Java file and the method name one wants to inject, and that outputs the Java code (for both Eclipse and Javac) that will insert this method into the handler ?
Aucun commentaire:
Enregistrer un commentaire