Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > method calls

method calls
Thread Tools
geran
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Sep 28, 2004, 01:20 PM
 
How can I from a (java) class get all calls to other classes, is there a easy way?
     
K++
Senior User
Join Date: Jan 2002
Location: NYC
Status: Offline
Reply With Quote
Sep 28, 2004, 06:41 PM
 
Is this programmatically as in what does it call while running, or over the source as in what calls does this class make?

The first one you can't do cleanly in Java since it doesn't have IMPs or true obejct introspection, despite reflection.

The second you can jsut write a regular expression to go over the .java source capture the list of imported classes, then look for the use of them in new * or *.foo() calls. Also there are always the finals used like definitons, but those you would need some sort of introspection to do.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:19 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,