Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
问题描述
我正在寻找一个维护良好且具有直观 API 的 Java 字节码操作库.那里似乎有很多.有什么可以尝试的建议吗?
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.
然而,根据我的经验,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 和许多其他产品,这保证了广泛的用户群和广泛的支持社区.li>
- 文档相当详尽,OW2 提供了许多教程、用户指南和参考文档联盟和整个社区.li>
- 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.
注意@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 字节码操作库建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Java 字节码操作库建议
基础教程推荐
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 降序排序:Java Map 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01