A.1. Classes

Figure A.1 applies some of the UML features for illustrating classes.

Figure A.1. Classes. Note that there is no guarantee that a UML diagram portrays every element of a package or class. The amount of detail in a diagram depends on the objective of the illustrator.

In Figure A.1, note the following.

  • A package appears as the name of the package in a rectangle left-aligned with a larger box that may show classes and interfaces. Figure A.1 shows a portion of the sjm.parse package.

  • A class appears as the name of a class centered in a rectangle. Figure A.1 shows three classes: Assembler, Assembly, and Repetition.

  • A diagram may show a class's ...

Get Building Parsers with Java™ 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.