Not quite the same, but could you compile the Java code and use the
reflection API to get what you are looking for?

Bill Squires

> -----Original Message-----
> De: Ken Lai [mailto:[EMAIL PROTECTED]]
> Assunto: [jdjlist] Java source code parser?
> 
> 
> I've been looking on the web but couldn't seem to
> find a parser that would create a java model
> (Class, method, field etc). Basically I want to
> use a java source file as an input, and the
> parser would return some sort of model for me to
> retrieve information about the class, package,
> methods, fields etc.
> 
> The closest thing I've found is the Eclipse
> project's JDT core, but I'm not sure if I
> can/allowed to use the library without running
> the Eclipse runtime.
> 
> Another option I'm looking at is the JavaCC,
> which I would have to manually add in my own
> actions in the grammar to get the information (a
> bit too low level).
> 
> Anyone used something like this before
> (preferrably open source)? What was your
> experience like?
> 
> Thanks in advance.
> 
> =====
> Ken Lai

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to