I have a java project (in fact, an Android project), and I need to print in a file all the classes and methods that I have in this project.
I've been looking over the web and found the javap tool, which is interested but I don't know how to use it recursively in order to parse all the .java files that I have. Or maybe another tool exists?
What format do you need of this output file?
Eclipse can export the javadoc for your project. These html files will contain all of the classes and their methods.
I believe you can also specify a 'custom doclet' which will allow you to customize the output.
Pseudocode:
bin
folder of your project. If you don't know how, use FileUtils
from commons-io . .class
/
instead of .
. Replace it with .
Class.forName()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.