parsing java sources
Keith Ray
k_j_r_a_y at ix.netcom.com
Sat Sep 30 12:17:58 EDT 2000
Has anyone written python scripts to scan through a tree of java
source-code, and collect information as to which classes refer to other
classes, and print out tables or a graph of that information?
A class refers to another class X if it
has member variables of type X
has local variables of type X
has contructor/function parameters of type X
calls 'new X'
calls static functions of X
uses static variables of X
inherits from X
The last one (inheritance relations) is easily generated in Visual Cafe
and some other environments, but the others are more important in trying
to understand poorly-designed code.
If you have written scripts to do this, and are willing to make them
public, please post and email the URL or the scripts themselves to me.
mailto: k j r a y @ i x . n e t c o m . c o m
--
<http://pw2.netcom.com/~kjray/>
More information about the Python-list
mailing list