• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Code to UML

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some Java code. Is there a tool where I can use the code as input and generate UML diagrams?
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
magicdraw does it, and the inverse too
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a couple of tools.

What do you need the diagrams for?
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rose and any of the big players have "reverse engineering" features.

You almost certainly will hate the results, though. The tools take every miniscule bit of the code literally and show way too much detail. One value of modeling is to abstract away the things that don't matter to reveal the things that do matter. Reverse engineering usually buries you in detail so it's no easier to find the things that matter than it was by reading code.
[ March 28, 2005: Message edited by: Stan James ]
 
Lucky Singh
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its part of a project where I need to analyze code. I guess analyze means to draw the UML diagrams.

Also, I tried using magicdraw. You require the commercial edition to reverse engineer. The community edition does not allow you to convert Java code to UML.

I have Poseidon but reverse engineering is not for the community edition. We need a commercial edition for reverse engineering in Poseidon as well.

Can someone suggest some tool which is free and available on the net?
[ March 27, 2005: Message edited by: Lucky Singh ]
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lucky Singh:
Its part of a project where I need to analyze code. I guess analyze means to draw the UML diagrams.



To "analyzing code" means to try to *understand* the code. It might be a good idea to draw some UML as a rough map to help you not get lost, or to help communicate your understandings to others. I wouldn't expect automatically generating UML from code to be of great help, though.

Your mileage may vary...
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic