Chapter 7. Generative Programming

Generative programming (GP) is code reuse via the automation of code development. Instead of writing Java code directly, you describe a problem in a specification language tailored to the problem space, and then you employ a tool to generate the necessary Java source code or bytecode. Java is widely hailed as a language suitable for object-oriented development, but it is equally suited for GP. In fact, object-oriented programming and GP are complementary, and many of the most exciting technologies in the Java world today combine the two. This chapter has four purposes:

  1. Present the motivations for using GP.

  2. Develop a taxonomy of the binding times and modes that are possible in Java and the tools that each employs. ...

Get Component Development for the Java™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.