- MethodGen mg = new MethodGen(getType().method(name, ret, args), flags);
+ return addMethod(getType().method(name, ret, args),flags);
+ }
+ public final MethodGen addMethod(Type.Class.Method method,int flags) {
+ MethodGen mg = new MethodGen(method, flags);
+ methods.addElement(mg);
+ return mg;
+ }
+ public final MethodGen addMethod(Type.Class.Method m, int flags) {
+ MethodGen mg = new MethodGen(m, flags);