| Summary: | On many medium- to large-scale development projects, a tool is needed to generate source code for parts of the application. In many cases simple attributes that describe a class are used as input, and a code generator creates classes that are integrated within an application framework. That approach is often implemented in an ad hoc fashion, by using Perl scripts or overly complicated lexer and parser generators. Javadoc is an extensible tool typically used for code documentation purposes, but it is also suitable as a code generation tool. Javadoc's extensibility comes from creating custom doclets. This article presents a custom doclet that provides a simple extensible architecture to generate code for SQL schema, and Java and C++ classes from simple Java class definitions. (1,500 words)
|