// Add the constructor.
lazyAppClassRep.addConstructor(createLazyAppClass_constructor(mf, functionField, functionArgumentMemberFields));
// Add the reduce method.
lazyAppClassRep.addMethod(createLazyAppClass_method_reduce(mf, functionField, lazyAppTypeName, functionArgumentMemberFields));
// Add the clearMembers() method.
JavaMethod clearMembers = new JavaMethod (Modifier.PUBLIC | Modifier.FINAL, JavaTypeName.VOID, "clearMembers");
//the line "function = null;" should not be added to clearMembers. function is a reference to a singleton
//so that clearing it doesn't actually free any memory. However, not clearing it means that the the method