public static void checkMgens ( final ClassGen gen ) { if ( skipChecks ) { return ; } Method [ ] methods = gen . getMethods ( ) ; for ( int i = 0 ; i < methods . length ; i ++ ) { Method method = methods [ i ] ; // System.out.println ("Checking method " + method + " in class " // + gen.getClassName()); checkMgen ( new MethodGen ( method , gen . getClassName ( ) , gen . getConstantPool ( ) ) ) ; } // Diagnostic output if ( false ) { dumpStackTrace ( ) ; dumpMethods ( gen ) ; } }
Checks all of the methods in gen for consistency .