programClass.fieldsAccept(memberAdder);
programClass.methodsAccept(memberAdder);
// Copy over the other attributes.
programClass.attributesAccept(
new AttributeNameFilter(new NotMatcher(new OrMatcher(new OrMatcher(
new FixedStringMatcher(ClassConstants.ATTR_SourceFile),
new FixedStringMatcher(ClassConstants.ATTR_InnerClasses)),
new FixedStringMatcher(ClassConstants.ATTR_EnclosingMethod))),
new AttributeAdder(targetClass, true)));