il.append( new ICONST(j) );
il.append( ClassFileUtils.getIntConst(j,cp) );
    private static void generateClInit(ClassGen cg, ConstantPoolGen cp,  java.util.HashMap  methods){                //generates :      /*      static{             Class [] args;      Class cls = findClass("java.lang.Object");      args = new Class[0];      METHOD_1 = cls.getDeclaredMethod("toString", args );         ................       }       */                InstructionList  il = new InstructionList();        MethodGen cinit = new MethodGen(        ACC_STATIC , // access flags        Type.VOID, // return type        new Type[] { }, null, // arg names        "<clinit>", cg.getClassName(), il, cp );                MethodGen findClass = ClassFileUtils.generateFindClass( cg, cp );                for( java.util.Iterator i = methods.keySet().iterator(); i.hasNext(); ){                        String fieldName      = (String)i.next();            java.lang.reflect.Method method =            (java.lang.reflect.Method)methods.get( fieldName );            Class[] args = method.getParameterTypes();            String declaring    = method.getDeclaringClass().getName();                        il.append( new  LDC( cp.addString(declaring) ));            il.append( new  INVOKESTATIC(            cp.addMethodref(  findClass   ) ) );            il.append( new  ASTORE(1) );                                    il.append( new ICONST( args.length )  );            il.append( new ANEWARRAY( cp.addClass( CLASS_OBJECT ) ) );                        for( int j = 0; j < args.length; j++   ){                                il.append( new DUP() );                il.append( new ICONST(j) );                ClassFileUtils.loadClass( il, cg,  cp, args[j] );                il.append(  new AASTORE() );                            }                        il.append( new ASTORE(0) );            il.append( new ALOAD(1) );            il.append( new LDC( cp.addString(method.getName() ) ) );            il.append( new ALOAD(0) );            il.append( new INVOKEVIRTUAL(            cp.addMethodref("java.lang.Class","getDeclaredMethod",            "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;")            )            );                        il.append( new PUTSTATIC(            cp.addFieldref( cg.getClassName(), fieldName,            "Ljava/lang/reflect/Method;" ) )            );        }                il.append( new  RETURN() );        cg.addMethod( ClassFileUtils.getMethod( cinit ) );            }