Using the ASM Toolkit for Bytecode Manipulation
Subject:   Simpler alternative?
Date:   2004-10-12 12:14:11
From:   billburke
Response to: Simpler alternative?

A much much simpler alternative is Javassist:

It has a built in Java compiler that can compile a String at runtime and you can insert that String directly into code. Check out the Javassist tutorial on the URL above.