}
if(isEnum){ // Build a dummy ordinal() method
MethodVisitor ordinalMethod =
super.visitMethod(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, "ordinal", "(Lorg/deuce/transaction/Context;)I", null, null);
ordinalMethod.visitCode();
ordinalMethod.visitVarInsn(Opcodes.ALOAD, 0);
ordinalMethod.visitMethodInsn(Opcodes.INVOKEVIRTUAL, className, "ordinal", "()I");
ordinalMethod.visitInsn(Opcodes.IRETURN);
ordinalMethod.visitMaxs(1, 2);
ordinalMethod.visitEnd();