Reverse engineering Java

4 Select the files that you want to reverse and click Open.

Multi-selection

You can select several files simultaneously by using the CTRL or SHIFT keys.

5Click OK.

A Progress box appears and the classes are added to your model. The classes are visible in the diagram and in the Browser.

The reversed classes are listed in the Reverse page of the Output window, situated in the bottom part of the PowerDesigner main window.

Reverse engineering compiled Java files

A compiled .class file contains the definition of one unique class. A compiled

.class file results from compiling a .java file, using an independent Java compiler. After compilation, each class definition in the .java file becomes an individual compiled .class file.

When you reverse engineer a .class file, PowerDesigner creates a class in the model that corresponds to the class definition in the .class file. The newly created class has the same name as the definition in the .class file.

ϖTo reverse engineer compiled Java files to a diagram:

1Select LanguageReverse Engineer Java. The Reverse Java dialog box appears.

158

Page 168
Image 168
Sybase 7.5 Reverse engineering compiled Java files, Multi-selection, To reverse engineer compiled Java files to a diagram