square/javapoet
View on GitHub ↗ ★ 10,825 Java archived
A Java API for generating .java source files.
5 mentions on Hacker News by 4 people: 1 story, 4 comments · first 2017-04-08 · latest 2025-08-11
20082026
-
If you are into code generation, another project of interest is Java Poet https://github.com/square/javapoet I've used it to do a mass refactoring of an annotation-based library. Worked pretty great.
comment by cogman10 · 2025-08-11 · in Byte Buddy is a code generation and manipulation library for Java -
Looking at your examples, this looks like https://github.com/square/javapoet
comment by brabel · 2023-03-09 · in JDK 20 and JDK 21: What we know so far -
…to update a minimum dependency? [1] https://www.baeldung.com/java-annotation-processing-builder [2] https://github.com/square/javapoet [3] https://bytebuddy.net/ [4] https://github.com/beiliubei/maven-replacer-plugin
comment by cogman10 · 2022-12-07 · in A new CMake Scripting Language? -
JavaPoet is a relatively nice library for generating Java sources: https://github.com/square/javapoet
comment by wtetzner · 2017-09-14 · in Java Reflection, 1000x Faster -
▲ 1
JavaPoet generatorstory by based2 · 2017-04-08 · 0 comments