Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java code generation [closed]

What are the leading frameworks for java code generation?

I am not looking for a DB or app generation tool. I have a skeleton of a class, and I need to generate it with different dynamic parts for different use cases. The majority of the class is identical, hence I want to run code that generates different flavors of the class.

Anyone know a good framework?

Thanks.

like image 845
YaOg Avatar asked Aug 02 '10 06:08

YaOg


People also ask

What is a Java code generator?

The Java code generation is available via Papyrus SW designer, a Papyrus component. It can be used by installing the latest version of Papyrus. It allows to create Java source code from a class diagram.

Can code generation be automated?

Code generation can automate API development in one system to match another, Bartlett said. For example, it's often simpler to use a code generation tool to write a code handler than to do so manually, because the tool automatically analyzes the database.

What is final code generation?

Code generation is the final phase in a compiler. Given a code in intermediate form, it uses code generation algorithm and register allocation strategies to generate the final target code.

What happens in code generation phase?

Code generation is a mechanism where a compiler takes the source code as an input and converts it into machine code. This machine code is actually executed by the system.


2 Answers

cglib is a powerful, high performance and quality Code Generation Library

jet/velocity are using templates.

If you're looking to generate a whole application check out JBoss Seam framework.

like image 50
stacker Avatar answered Sep 20 '22 17:09

stacker


  • Spring Roo
  • AppFuse

Note that these utilities are mainly for kickstarting your project by generating boilerplate code.

like image 22
Bozho Avatar answered Sep 18 '22 17:09

Bozho