Question: Is there any way to convert Java source or AST into JavaPoet code?
seanghay opened this issue Β· comments
Seanghay Yath commented
Or maybe AST -> JavaPoet.
I am doing a large codebase migration and I want minimize manual work.
I want to:
- Java Source -> JavaPoet source
- Modify JavaPoet source
- JavaPoet source -> Java Source back
StackOverflow is overrated π
Jake Wharton commented
No. I recommend the Spoon library for this: https://spoon.gforge.inria.fr/
If you're feeling adventurous you could also use IntelliJ PSI which is what the IntelliJ IDEA editor uses to manipulate your code.
Seanghay Yath commented
Thanks @JakeWharton!