• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Complete Reference Tree for an Element

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Is there any tool that can help me generate a complete reference tree for any element in Java? What I mean by that is as follows:
Lets say there is a variable myVariable in class MyClass. I want to get a list of all the functions that reference myVariable (both in Java code and JSP code). And to do it recursively until I get, for example, a Servlet method that initiates the chain of events leading up to myVariable being referenced.

Thanks,
Sharad
[ November 20, 2006: Message edited by: Sharad Agarwal ]
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure about JSPs for java elements in your eclipse project, if it is a variable you can look for it's references. right click context menu has this option, that will list all the references of that variable or method.

For methods, you can also use call heirarchy option.

These will be of use if you are using Eclipse, for other editors there should be similar options.

Cnu,
 
Sharad Agarwal
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is very useful. Eclipse is the hammer of choice. Is there some way to get these tools to search JSPs as well?
 
reply
    Bookmark Topic Watch Topic
  • New Topic