Java code generation functions

Generating several classes within a single source file

Java source files can contain several classes. To generate several classes in the same source file, the file’s main class is linked to the other files by an element import link stereotyped as JavaFileGroup.

A Java source file containing several classes is generated in the model in the following way:

The file’s main class is linked to the other files by an element import link stereotyped JavaFileGroup.

Java generation commands

Modelio Java Designer generation provides several features related to generation.