你能列出JAR文件的导入吗? [英] Can you list imports from a JAR file?
本文介绍了你能列出JAR文件的导入吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以像在.NET中使用DLL一样列出JAR文件中使用的导入?
Is it possible to list the used imports from a JAR File like you can with a DLL in .NET?
我找到了可以列出JAR文件内容的程序,例如:
I found programs that can list the content of the JAR file, like:
http://jarbrowser.sourceforge.net/
但我会喜欢列出导入。
推荐答案
你可以试试 Jdepend 。
编译后导入语句不再可用,
只有对象的类型,你需要分析字节代码来做到这一点。
After compilation the import statements are no longer available, only the types of the objects, you would need to analyze the byte code to do that.
有关详细信息,请参阅类文件格式甚至更多java.sun.com/docs/books/jvms/second_edition/ClassFileFormat-Java5.pdf
For more details see class file format or even more java.sun.com/docs/books/jvms/second_edition/ClassFileFormat-Java5.pdf
这篇关于你能列出JAR文件的导入吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文