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/analysis
for analysis processors.src/main/java/fr/inria/gforge/spoon/transformation
for transformation processors.
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