SPOON: A library for implementing analyses and transformations of Java source code

Renaud Pawlak, Martin Monperrus, Nicolas Petitprez, Carlos Noguera, Lionel Seinturier

Software Practice and Experience · 2015 · 237 citations · 31 references

DOIFull text

Open access

Concepts

TL;DR

The paper introduces SPOON, a library for analyzing and transforming Java source code. SPOON allows developers to write domain‑specific analyses and transformations in plain Java, making the process easy and concise. SPOON eliminates the need to parse code, hack compiler infrastructure, or learn new formalisms. © 2015 John Wiley & Sons, Ltd.

Abstract

This paper presents SPOON, a library for the analysis and transformation of Java source code. SPOON enables Java developers to write a large range of domain-specific analyses and transformations in an easy and concise manner. SPOON analyses and transformations are written in plain Java. With SPOON, developers do not need to dive into parsing, to hack a compiler infrastructure, or to master a new formalism. Copyright © 2015 John Wiley & Sons, Ltd.

References

31