HtmlToText
toggle navigation spoon papers ecosystem about jenkins github spoon getting started code analysis code transformation architecture checking runtime reflection examples javadoc faq usage from java command line from maven plugin from gradle plugin spoon meta model structural elements code elements references create elements with factories comments and positions querying source code elements ast traversing path matcher pattern transforming source code processor for elements processor for annotations generating source code generator testing quickstart assertions spoon - source code analysis and transformation for java spoon spoon is an open-source library that enables you to transform (see example ) and analyze java source code (see example ) . 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 . if you use spoon for industrial purposes, please consider funding spoon through a research contract with inria (contact martin monperrus for this). if you use spoon for academic purposes, please cite: renaud pawlak, martin monperrus, nicolas petitprez, carlos noguera, lionel seinturier. “ spoon: a library for implementing analyses and transformations of java source code ”. in software: practice and experience, wiley-blackwell, 2015. doi: 10.1002/spe.2346. @article { pawlak:hal-01169705, title = { spoon: a library for implementing analyses and transformations of java source code } , author = { pawlak, renaud and monperrus, martin and petitprez, nicolas and noguera, carlos and seinturier, lionel } , journal = { software: practice and experience } , publisher = { wiley-blackwell } , pages = { 1155-1179 } , volume = { 46 } , url = { https://hal.archives-ouvertes.fr/hal-01078532/document } , year = { 2015 } , doi = { 10.1002/spe.2346 } , url = { https://hal.archives-ouvertes.fr/hal-01078532/document } } support you have different options: open an issue on github (preferred). post a question to stackoverflow with tag inria-spoon . news star spoon on github: https://github.com/inria/spoon . :-) februray 10, 2019: spoon 7.3.0 is released (changelog) december 4, 2018: spoon 7.2.0 is released (changelog) october 10, 2018: spoon 7.1.0 is released (changelog) july 4, 2018: spoon 7.0.0 is released (changelog) march 8, 2018: spoon 6.2.0 is released (changelog) december 20, 2017: spoon 6.1.0 is released, merry christmas! :christmas_tree: (changelog) november 17, 2017: spoon 6.0.0 is released! check the (changelog) as there are few non backward-compatible changes :warning: september 6, 2017: spoon 5.9.0 is released (changelog) back-to-work release! july 11, 2017: spoon 5.8.0 is released (changelog) summer release :beer: to be prefered wrt the previous one: fix lot of bugs. june 01, 2017: spoon 5.7.0 is released (changelog) march 16, 2017: spoon 5.6.0 is released (changelog) spring release :-) january 11, 2017: spoon 5.5.0 is released (changelog) . happy new year! october 27, 2016: spoon 5.4.0 is released (changelog) . september 19, 2016: spoon 5.3.0 is released (changelog) . june 30, 2016: spoon 5.2.0 is released (changelog) . june 22, 2016: spoon 5.1.1 is released (changelog) . march 21, 2016: spoon 5.1.0 is released (changelog) . february 12, 2016: spoon 5.0.2 is released (changelog) . february 3, 2016: spoon 5.0.1 is released (changelog) . january 25, 2016: spoon 5.0.0 is released (changelog) . november 18, 2015: spoon 4.4.1 is released (changelog) . november 16, 2015: spoon 4.4.0 is released (changelog) . september 22, 2015: spoon 4.3.0 is released (changelog) . june 15, 2015: spoon 4.2.0 is released (changelog) . may 7, 2015: spoon 4.1.0 is released (changelog) . april 8, 2015: spoon 4.0.0 is released (changelog) . february 11, 2015: spoon 3.1 is released (changelog) . december 9, 2014: spoon 3.0 is released (changelog) . november 12, 2014: spoon 2.4 is released (changelog) . october 9, 2014: spoon 2.3.1 is released (changelog) . september 12, 2014: spoon 2.1 is released (changelog) . april 2, 2014: spoon 2.0 is released (changelog) . september 30, 2013: spoon 1.6 is released. april 12, 2012: spoon 1.5 is released. download jar file latest version: https://search.maven.org/remote_content?g=fr.inria.gforge.spoon&a=spoon-core&v=latest&c=jar-with-dependencies - javadoc maven stable version: <dependency> <groupid> fr.inria.gforge.spoon </groupid> <artifactid> spoon-core </artifactid> <version> 7.5.0-beta-21 </version> </dependency> snapshot version: <dependencies> <dependency> <groupid> fr.inria.gforge.spoon </groupid> <artifactid> spoon-core </artifactid> <version> 7.5.0-snapshot </version> </dependency> </dependencies> <repositories> <repository> <id> maven.inria.fr-snapshot </id> <name> maven repository for spoon snapshots </name> <url> http://maven.inria.fr/artifactory/spoon-public-snapshot </url> </repository> </repositories> to know more about the usage of spoon, you can read the documentation in the "usage" section . contributing if you would like to contribute code you can do so through github by forking the repository and sending a pull request. when submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. please also make sure your code compiles by running mvn clean verify . license spoon is free and open source (cecill-c license - french equivalent to lgpl). contact / feedback / question / bug report site last generated: may 26, 2019