spoon-examples gives analysis and transformation processors showing the usage of the open-source library Spoon.
You can see these processors in:
src/main/java/fr/inria/gforge/spoon/analysisfor analysis processors.
src/main/java/fr/inria/gforge/spoon/transformationfor transformation processors.
src/main/java/fr/inria/gforge/spoon/spoonerisma basic example of transforming classes to extend a common parent class. Accompanied by the spoonerism.fodp presentation.
You can run the tests of the project with a
mvn test command on the root of the project to execute all examples (all test classes).
git clone https://github.com/SpoonLabs/spoon-examples.git cd spoon-examples mvn test