* @throws GenerationError
*/
private MethodGen createNonAbstractMethod(String className,MethodDef mdef, int access_flags,
Type return_type, Type[] arg_types) throws GenerationError {
InstructionListContext ilc = generateInstructions(mdef);
MethodGen mgen = new MethodGen(access_flags,
return_type,
arg_types,
null,
mdef.name,
className,
ilc.instList,
instructionFactory.getClassGen().getConstantPool()) ;
for(Map.Entry<InstructionHandle, Integer> e: ilc.lineNumbers.entrySet()) {
InstructionHandle h = e.getKey() ;
Integer linenum = e.getValue() ;
mgen.addLineNumber(h, linenum.intValue()) ;
}
addExceptionHandlers(mgen, ilc);
return mgen;
}