public void modifyClasses(ClassCollection collection, DeltaModule delta) { List<ClassModification> modifiesClasses = DeltaJUtils.getDeltaModifies(delta); for (ClassModification modifiesClass : modifiesClasses) { Class classToModify = DeltaJUtils.classByName(collection, modifiesClass.getName()); if (classToModify != null) modifyClass(classToModify, modifiesClass); } }
public void modifyClass(Class classToModify, ClassModification modifiesClass) { if (modifiesClass.getExtends() != null) classToModify.setExtends(modifiesClass.getExtends()); for (DeltaSubAction modifiesClassAction : modifiesClass.getSubActions()) modifyClass(classToModify, modifiesClassAction); }