import javassist.bytecode.Bytecode;
import javassist.bytecode.ConstPool;
public class Coverage {
public static void main(String[] args) {
ConstPool cp = new ConstPool("Hello");
byte[] b = new byte[100];
Bytecode bc = new Bytecode(cp);
b = bc.get();
System.out.println("Bytecode start");
for(int i = 0 ; i < b.length ; i++)
{
System.out.println(b);
}
System.out.println("Bytecode end");
}
}
bc.get()は何も返しません。私の目的は、クラスのバイトコードを取得することです。