iAnywhere Water System User Manual

Reverse engineering Java
152
When you reverse engineer Java files, some comments may change form or
position within the code.
Comment in original Java file After reverse
Before the import declarations Is lost from file
Beginning with /* Begins with //
At the end of the file below all the code Is lost from file
Within a class but not within an operation Is attached to the attribute or
operation that immediately follows it
Reverse engineering Java options
You define Java reverse engineering options from the Reverse Java dialog
box.
You can define the following Java reverse engineering options:
Option Result of selection
Ignore operation body Reverses classes without including the body of the code
Ignore Comments Reverses classes without including code comments
Create Symbols Creates a symbol for each object in the diagram.
Otherwise, reversed objects are visible in the browser
Mark Classifiers not to
be generated
Reversed classifiers (classes and interfaces) cannot then
be generated from the model. To be able to generate the
classifier, you must select the Generate checkbox in its
property sheet
Create Associations Creates associations between classes and/or interfaces
Libraries Opens a JDK model in the workspace. The Setup
program installs these models with PowerDesigner.
They contain the class libraries of each version of JDK
and are useful to you in that you can load them quickly
into PowerDesigner and thus save time reversing them
v To define Java reverse engineering options:
1 Select LanguageReverse Engineer Java.
The Reverse Java dialog box opens.
2 Click the Options tab.
Java code
comments