Silas
Silas

Reputation: 1

Generating Object UML diagrams from java program

Is there a way I could generate Object UML diagrams from the .jar file I have created for my project. I want to supply the input to the jar and then have the Object UML diagrams generated. To generate and visualise the class diagrams, I used class-visualizer but could not find a tool for object-uml diagrams generation.

Upvotes: -1

Views: 844

Answers (1)

muszeo
muszeo

Reputation: 2352

Object and Class diagrams are two different things. There are several tools that can do static analysis of your source code to put together a Class diagram for you (I.e. class structure). For an object diagram you need something that can hook into the process at runtime, when the Objects are in memory. Sparx EA can do this —- it can attach to processes that emit debug symbols to build a picture of the objects in memory and the interactions between them, though of course it can only do that for objects exercised by the process during the capture session. It builds a sequence chart rather than an object diagram, but it will nonetheless help you with object behaviour.

Upvotes: 0

Related Questions