Add updates...
[repair.git] / Repair / RepairCompiler / MCC / IR / AbstractRepair.java
index 033d8388f9d5beb90661d8d5059e116bd1a078ba..3783f4beb8379514afab9236a833a19dd80da61c 100755 (executable)
@@ -28,7 +28,16 @@ class AbstractRepair {
            return "Unknown";
        }
     }
-    
+
+    public boolean isNewObject(boolean isdomain) {
+       if (getType()==ADDTOSET) {
+           return sources.allocSource((SetDescriptor)descriptor);
+       } else if (getType()==ADDTORELATION) {
+           RelationDescriptor rd=(RelationDescriptor)descriptor;
+           return sources.relallocSource(rd,isdomain);
+       } else throw new Error("");
+    }
+
     public SetDescriptor getDomainSet() {
        if (torepair==null)
            return null;