Spoon is an open-source library to analyze, rewrite, transform, transpile Java source code. It parses source files to build a well-designed AST with powerful analysis and transformation API. It supports modern Java versions up to Java 20. Spoon is an official Inria open-source project, and member of the OW2 open-source consortium.

Features

  • The Spoon metamodel is as close as possible to the language concepts
  • The Spoon model of a program is complete and sound
  • The text version of a Spoon model is well-formed and semantically equivalent to the original program
  • The analysis and transformation API is intuitive and regular
  • Transformation operators are designed to warn as fast as possible about invalid programs
  • When feasible, the text version of a Spoon model is close to the original one

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Spoon

Spoon Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Spoon!

Additional Project Details

Programming Language

Java

Related Categories

Java Libraries

Registered

2023-08-18