示例#1
0
  public void removeClassByName(ClassCollection collection, String classToRemove) {

    for (Class class1 : collection) {
      if (class1.getName().equals(classToRemove)) {
        collection.remove(class1);
        return;
      }
    }
  }
示例#2
0
  public void buildClasses(ClassCollection currentClasses, DeltaModule deltaToApply) {

    currentClasses.addAll(getCopyOfAddedClasses(deltaToApply));
    removeClasses(currentClasses, deltaToApply);
    modifyClasses(currentClasses, deltaToApply);
  }