protected void modifyClassCase(Class classToModify, FieldRemoval removesField) { Field fieldToRemove = DeltaJUtils.fieldByName(classToModify, removesField.getName()); if (fieldToRemove != null) classToModify.getFields().remove(fieldToRemove); }
protected void addClonedField(Class classToModify, Field field) { classToModify.getFields().add(EcoreUtil2.clone(field)); }