Chapter e10

Code Generation

This chapter presents some techniques to automatically or systematically generate source code from design diagrams, specifically for the design class diagram and communication diagrams. Structural rules are presented to explain how code may be generated for a class’s structures, such as attributes and associations. A significant part of the chapter is dedicated to the explanation of the many kinds of associations and the code generation patterns available for them. Finally, the chapter explains how running code may be generated for interaction diagrams that represent dynamic models.

Keywords

Automatic code generation; delegation; implementation; programming

Key Topics in this Chapter:

• Code generation for classes, attributes, ...

Get Object-Oriented Analysis and Design for Information Systems 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.