Пример #1
0
  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);
    }
  }
Пример #2
0
  public void modifyClass(Class classToModify, ClassModification modifiesClass) {

    if (modifiesClass.getExtends() != null) classToModify.setExtends(modifiesClass.getExtends());
    for (DeltaSubAction modifiesClassAction : modifiesClass.getSubActions())
      modifyClass(classToModify, modifiesClassAction);
  }