Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

callgraph in java classes

Thread view: 
ronny - 17 May 2006 11:42 GMT
Hi,

I need to have a program that produce a call graph which display the
calling of a method to other classes, and vice versa. It is expected
that it will produce something like:
  class A
    method A1 - is called by class B:method B3
    mehod A2 - is called by class C:method C2,
                      calls class D:method D1
 class B
     .... etc

It doesn't have to be in a graph display but a text would be ok or
better.
Could anyone suggest such program?

This topic might be a bit obsolete... sorry for that.
However, I could not find the right program to solve that issue at this
stage.

Thanks you very much for any help.

Kind regards,
Ronny
Oliver Wong - 17 May 2006 16:27 GMT
> Hi,
>
[quoted text clipped - 15 lines]
> However, I could not find the right program to solve that issue at this
> stage.

   By "obsolete", I guess you mean "obscure". I'm assuming that you have
access to the source code of the program you want to analyze, and I'm
further assuming that this source code is written in Java.

   If you use Eclipse, you could build the call graph manually. Right click
on a method and choose "Open Call Hierarchy". Perhaps other IDEs have a
similar feature. However, you'd be stuck doing this manually for each
method.

   To write a tool to do this automatically, you could write a plugin for
Eclipse. You might use this plugin (which is open source) as a guideline:
http://clabs.org/blogki/blogki.cgi?page=/ComputersAndTechnology/CallGraphEclipse
Plugin


   - Oliver
ronny - 18 May 2006 04:50 GMT
>     By "obsolete", I guess you mean "obscure". I'm assuming that you have
> access to the source code of the program you want to analyze, and I'm
> further assuming that this source code is written in Java.

Your assumption is correct, I have access to source code which was
writtern in Java.

>     If you use Eclipse, you could build the call graph manually. Right click
> on a method and choose "Open Call Hierarchy". Perhaps other IDEs have a
[quoted text clipped - 4 lines]
> Eclipse. You might use this plugin (which is open source) as a guideline:
> http://clabs.org/blogki/blogki.cgi?page=/ComputersAndTechnology/CallGraphEclipse
Plugin

Thanks very much for the link and will try eclipse...
However if there is one built in Java, please let me know.

Regards,
Ronny


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.