public void generate(CodeGenerator cg, List methods, Context context) { for (int i = 0, size = methods.size(); i < size; i++) { Method method = (Method)methods.get(i); String accessName = getAccessName(method, i); String fieldName = getFieldName(i);
public void generate(CodeGenerator cg, Context context) { for (Iterator it = context.getMethods(); it.hasNext();) { Method method = (Method)it.next(); String accessName = getAccessName(context, method); String fieldName = getFieldName(context, method);
    public void generate(CodeGenerator cg, List methods, Context context) {        for (int i = 0, size = methods.size(); i < size; i++) {            Method method = (Method)methods.get(i);            String accessName = getAccessName(method, i);            String fieldName = getFieldName(i);            cg.declare_field(PRIVATE_FINAL_STATIC, Method.class, fieldName);            cg.declare_field(PRIVATE_FINAL_STATIC, MethodProxy.class, accessName);            generateAccessMethod(cg, method, accessName);            generateAroundMethod(cg, method, accessName, fieldName, context);        }    }