TLDR Web Dev · ARTICLES & TUTORIALS

CODE MODELS

openjdk.org40 min read

Summary from the TLDR Web Dev newsletter

Code reflection in Java allows developers to access and manipulate symbolic representations of Java code called code models. Code models are structured as trees, with nodes representing elements like operations, bodies, and blocks. They are stored in Static Single Assignment (SSA) form. Code models are used for things like generating derived code and optimizing existing code.