generate(dir, "pkg/Insns.class", dump());
}
public byte[] dump() {
ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
FieldVisitor fv;
MethodVisitor mv;
cw.visit(V1_5,
ACC_PUBLIC + ACC_SUPER,
"pkg/Insns",
"<E:Ljava/lang/Object;F:Ljava/lang/Exception;>Ljava/util/ArrayList<Ljava/lang/String;>;LInterface<TE;>;",
"java/util/ArrayList",
new String[] { "Interface" });
fv = cw.visitField(ACC_PRIVATE + ACC_FINAL,
"z",
"Z",
null,
new Integer(1));
fv.visitEnd();
fv = cw.visitField(ACC_PROTECTED, "b", "B", null, null);
fv.visitEnd();
fv = cw.visitField(ACC_PUBLIC, "c", "C", null, null);
fv.visitEnd();
fv = cw.visitField(ACC_STATIC, "s", "S", null, null);
fv.visitEnd();
fv = cw.visitField(ACC_PRIVATE + ACC_TRANSIENT, "i", "I", null, null);
fv.visitEnd();
fv = cw.visitField(ACC_PRIVATE + ACC_VOLATILE, "l", "J", null, null);
fv.visitEnd();
fv = cw.visitField(0, "f", "F", null, null);
fv.visitEnd();
fv = cw.visitField(0, "d", "D", null, null);
fv.visitEnd();
fv = cw.visitField(0, "str", "Ljava/lang/String;", null, "");
fv.visitEnd();
fv = cw.visitField(0, "e", "Ljava/lang/Object;", "TE;", null);
fv.visitEnd();
mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
mv.visitCode();
mv.visitVarInsn(ALOAD, 0);
mv.visitMethodInsn(INVOKESPECIAL,