Class file parsers  
Author Message
Andreas Leitgeb





PostPosted: 2007-9-6 5:42:00 Top

java-programmer, Class file parsers Mike Schilling <email***@***.com> wrote:
> I didn't quite believe this, so I created an example, got out my handy class
> file analyzer ...

I'm curious as to which tool you use for this task. The way you said that
("got out my ...") seems to me to indicate that you've also made your own...

I have written one myself (in Tcl, not in Java, so I do the parsing completely
myself), because I didn't like javap hiding away private fields and methods.
Unfortunately the user-interface of my script is still somewhat cryptic (not
yet good enough for prime time).

PS: this is not meant as a general question about such tools. Meanwhile I know
some already, but back then, when I wrote my own, all I knew then was javap.

 
Mike Schilling





PostPosted: 2007-9-6 5:53:00 Top

java-programmer >> Class file parsers
"Andreas Leitgeb" <email***@***.com> wrote in message
news:email***@***.com...
> Mike Schilling <email***@***.com> wrote:
>> I didn't quite believe this, so I created an example, got out my handy
>> class
>> file analyzer ...
>
> I'm curious as to which tool you use for this task. The way you said that
> ("got out my ...") seems to me to indicate that you've also made your
> own...

I did. It's rudimentary so far, just parses out and prints all of the bits
including the constant pool entries. When I have time I'll flesh it out to a
tool that helps determine class dependencies, so that I can safely
re-organize a large existing code base.