You may want to look at gccxml (http://www.gccxml.org/HTML/Index.html).
I haven't used it with Java, but it sits on the back end of the gcc
framework, so I think should work with gcj. The author is pretty
responsive on the mailing list, you could ask him directly.

hth,
Scott.

Vincent Richard wrote:> I am searching for some documentation about reusing GCJ (GNU Java> compiler) parsing code into my own program. In fact, I want GCJ to> parse a ".java" file and return all the information useful to> understand the structure of a Java program (the parsing tree) :> classes, methods, attributes names/types, etc...>> I have started by checking C source files, but nothing is really clear about> how to interface with the parser.>> Does anybody have some documentation/links about that ?