Java Equivalent of Reflection.Emit

2019-01-23 13:22发布

问题:

As far as I can tell, Java has no such equivalent of C#'s Reflection.Emit stuff. Are there any additional libraries for Java that provide similar functionality? What are the differences (to reflection emit)?

回答1:

Besides Darin's excellent answer (+1), ASM is worth checking out too.



回答2:

The Byte Code Engineering Library (BCEL)