We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
JastAdd 是一个很好的源代码级别分析器(还有更多)。
不过,您可能更喜欢在字节码级别上工作。这更简单、更快,提供您请求的所有信息,无需源代码(显然)并且可以与其他基于 JVM 的语言一起使用。为此,Soot 或 ASM 是一个不错的选择。
更新
当然,对于字节码,您无法真正执行源代码级重构(尽管您可以进行字节码修改)。
为了完整起见,您可能需要结合使用这两种方法。
JastAdd is a good source level analyzer (and much more).
You might prefer to work on bytecode level though. This is simpler, faster, provides all information you requested, works without source (obviously) and with other JVM-based languages. For that, either Soot or ASM is a good choice.
UPDATED
Of course with bytecode you can't really perform source level refactoring (though you could do bytecode modification).
For completeness you may want to combine both approaches.