Extracting JavaDoc from Python
I would like to integrate a Java / Android project documentation into a Trac instance. Since Trac is written in Python, I need a way to extract JavaDoc comments from Python.
Can someone please tell me how to do this? I thought about these two possibilities, but I don't know if there are any libraries that can do this:
- Parse all Java source.
- Let JavaDoc do the job and somehow retrieve documents from its release
source to share
I came up with the following solution: I found something called json-doclet , which is a kind of plugin for Javadoc that outputs JSON that should be handy to work with.
source to share
Doxygen , which is written in C ++, can parse Javadoc and output it as XML . You could call it from Python and then convert the XML to whatever format you like. (It will be more efficient if you do it in C ++ using doxmlparser
, but you can also do it in Python.)
source to share