Java字节码操作库建议 [英] Java Bytecode Manipulation Library Suggestions

查看:83
本文介绍了Java字节码操作库建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个维护良好的Java字节码操作库,它具有直观的API。那里似乎有很多人。有关哪些尝试的建议?

I'm looking for a well-maintained Java bytecode manipulation library with an intuitive API. There seem to be quite a lot of them out there. Any suggestions on which ones to try?

推荐答案

您问题的最佳答案将取决于您的具体需求和目标;如果你可以扩展你想要实现的目标,我可以提供更具针对性的回应。

The best answer to your question will be governed by your specific needs and objectives; if you can expand upon what you're trying to accomplish, I can perhaps offer a more tailored response.

然而,根据我的经验, href =http://asm.ow2.org/ =nofollow noreferrer> ASM 可能是成熟度,灵活性和易用性的最佳组合:

In lieu of that, however, in my experience, ASM offers probably the best combination of maturity, flexibility, and ease-of-use:


  • 它处于相对活跃的开发阶段:即使最新版本是从2009年6月开始,开发人员也会定期对其VCS进行提交。

  • 它已广泛应用于许多着名的Java产品,例如AspectJ,Groovy,Cobertura以及许多其他产品,这些产品承诺拥有广泛的用户群,因此可以提供广泛的社区支持。

  • 这是相当全面的文档,并且 OW2 Consortium提供了许多教程,用户指南和参考文档。 和整个社区。
  • It's under relatively active development: even though the latest release is from June 2009, developers are regularly making commits to their VCS.
  • It's already in wide use in a number of prominent Java products, such as AspectJ, Groovy, Cobertura, and many others, which promises a wide user-base and thus a wide community for support.
  • It's fairly thoroughly documented, and there are a number of tutorials, user guides, and reference documents available both from the OW2 Consortium and the community at large.

NB 评论@Yuri左下方描述了我个人尚未遇到但可能构成重大障碍的情况。在评估各种字节码操作库时,记住他的观察/经验。

N.B. The comment @Yuri left below describes a situation I personally haven't yet encountered but that may potentially pose a significant obstacle. Keep his observation/experience in mind while evaluating the various bytecode manipulation libraries.

这篇关于Java字节码操作库建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆