
Reverse engineering Java
Java code | When you reverse engineer Java files, some comments may change form or |
comments | position within the code. |
Comment in original Java file
Before the import declarations
Beginning with /*
At the end of the file below all the code
Within a class but not within an operation
After reverse
Is lost from file
Begins with //
Is lost from file
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
Ignore operation body
Ignore Comments
Create Symbols
Mark Classifiers not to be generated
Create Associations
Libraries
Result of selection
Reverses classes without including the body of the code
Reverses classes without including code comments
Creates a symbol for each object in the diagram. Otherwise, reversed objects are visible in the browser
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
Creates associations between classes and/or interfaces
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
ϖTo define Java reverse engineering options:
1Select Language➤ Reverse Engineer Java. The Reverse Java dialog box opens.
2Click the Options tab.