Ken Lai [mailto:[EMAIL PROTECTED]] wrote:

> 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.

For, err, umm, UML modeling perhaps?  I ask only for purposes of information.


> 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.

As far as I can tell you can't, but I could be wrong.  I haven't tried *that* hard yet.


> 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).

I agree.


> Anyone used something like this before
> (preferrably open source)? What was your
> experience like?

Sorry, don't know about anything like that.

Will you settle for a freely distributed "com.sun" API instead?  It sounds like the 
"Doclet" classes (package "com.sun.doclet") will give you just about exactly what you 
are want.  Check out the API JavaDoc here:
    http://java.sun.com/j2se/1.4/docs/tooldocs/javadoc/doclet/

-- Roger


____________________________________________________
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