Template-Based Code Generation with Apache Velocity, Part 2 (2 tags)
Giuseppe Naccarato's investigation of code generation continues with a look at using a language-agnostic model to represent the relationships of classes, attributes, and operations in the code to be generated. Does it work better than something platform-specific? The answer is surprising.
Template-Based Code Generation with Apache Velocity, Part 1 (2 tags)
This article demonstrates a simple code generator in Java that uses Velocity. The generator takes an XML representation of classes and data members and generates the Java code to define them. The generation process will be driven by a template that encapsulates the syntax of the target programming language.