Back to directory

Spoon

A Java metaprogramming library that parses source files into a full AST and provides an API for analyzing, rewriting, transforming and transpiling Java source code, supporting Java versions up to 25.

Spoon

Spoon is an open-source library for analyzing, rewriting, transforming and transpiling Java source code. It parses source files into a well-designed AST and exposes an analysis and transformation API, supporting modern Java versions up to Java 25.

Its design keeps the model close to the language's own concepts, complete and sound, with a text-rendering of a modified model that stays close to the original source and semantically equivalent to it, and transformation operators that report invalid programs as early as possible through static typing or dynamic checks.

It is an official Inria open-source project and a member of the OW2 open-source consortium, installed via Maven, with reference documentation, code examples and conference talks available.

More in Code quality

See all 94
  • Critic

    critic.run

    A code-change viewer, backed by Y Combinator, built for reviewing work written by coding agents, presenting a plain-language narrative of each change alongside the diff and a running conversation with the agent.

  • GitIntel

    hoangsonww.github.io

    An MCP server that computes git repository analytics such as hotspots, churn, temporal coupling, knowledge maps and risk scoring entirely from local commit history, for AI coding agents like Claude Code and Codex.

  • Axint

    axint.ai

    A verification layer for AI coding agents working on Apple projects: it runs real Xcode builds and tests against the Swift an agent wrote, reconciles static analysis findings against that evidence, and returns a signed proof with the exact repairs still needed.