Fix some of Dan's bugs (code generation for relation quantifiers misstyped), didn...
[repair.git] / Repair / RepairCompiler / MCC / IR / MultUpdateNode.java
1 package MCC.IR;
2 import java.util.*;
3
4 class MultUpdateNode {
5     Vector updates;
6     AbstractRepair abstractrepair;
7     ScopeNode scopenode;
8     int op;
9     static public final int ADD=0;
10     static public final int REMOVE=1;
11     static public final int MODIFY=2;
12
13     public MultUpdateNode(AbstractRepair ar, int op) {
14         updates=new Vector();
15         abstractrepair=ar;
16         this.op=op;
17     }
18
19     public MultUpdateNode(ScopeNode sn) {
20         updates=new Vector();
21         scopenode=sn;
22     }
23     void addUpdate(UpdateNode un) {
24         updates.add(un);
25     }
26     int numUpdates() {
27         return updates.size();
28     }
29     AbstractRepair getRepair() {
30         return abstractrepair;
31     }
32     UpdateNode getUpdate(int i) {
33         return (UpdateNode)updates.get(i);
34     }
35 }