In this talk Martin Monperrus will present Spoon, an open-source library that enables you to transform and analyze Java source code.
Spoon provides a complete and fine-grained Java metamodel where any
program element (classes, methods, fields, statements, expressions...) can be accessed both for reading and modification.
Spoon takes as input source code and produces transformed source code
ready to be compiled.
Spoon can be integrated in Maven and Gradle. See https://github.com/INRIA/spoon/