Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Visualizing container hierarchy

 
John Eagle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am looking for a way to visualize (or at least store in some vector of sorts) the container hierarchy of a java app I have created. Ideally I would like the result to include all levels of containment, i.e. the entire tree of such relationships.

The problem is that the classes I am referring to are self-made and to not extend any standard Java classes. The problem is that my classes are entirely self-made and do not extend any standard Java classes. Such tools as Vector and Container classes (which are part of AWT) are not available to my own classes.

Is there a (semi-) automatic way to generate this hierarchy? One example may be found at http://www.devx.com/tips/Tip/13099 but it assumes that classes are based on AWT.

Many thanks!
 
Jonas Isberg
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I had your trouble I would consider using reflection. There is a tutorial that could get you started.
 
Janeice DelVecchio
Saloon Keeper
Posts: 1809
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic