mv.visitMaxs(0, 0);
mv.visitEnd();
}
private void methodInsns(final ClassWriter cw) {
MethodVisitor mv = cw.visitMethod(ACC_PUBLIC,
"methodInsns",
"()V",
null,
null);
// invokstatic
mv.visitMethodInsn(INVOKESTATIC, "pkg/Insns", "ireturn", "()I");
// invokespecial
mv.visitVarInsn(ALOAD, 0);
mv.visitMethodInsn(INVOKESPECIAL, "pkg/Insns", "lreturn", "()J");
// invokevirtual
mv.visitVarInsn(ALOAD, 0);
mv.visitMethodInsn(INVOKEVIRTUAL, "pkg/Insns", "freturn", "()F");
// invokeinterface
mv.visitVarInsn(ALOAD, 0);
mv.visitMethodInsn(INVOKEINTERFACE, "java/util/List", "size", "()I");
mv.visitInsn(RETURN);
mv.visitMaxs(0, 0);
mv.visitEnd();
}