}
public String toString() {
- throw new Error();
+ throw new Error(this.getClass().getName() + "does not implement toString!");
}
public int numNext() {
return next.size();
next.add(n);
n.addPrev(this);
}
+
+ /** This function modifies the graph */
+ public void setNext(int i, FlatNode n) {
+ FlatNode old=getNext(i);
+ next.set(i, n);
+ old.prev.remove(this);
+ n.addPrev(this);
+ }
+
protected void addPrev(FlatNode p) {
prev.add(p);
}
+ public int kind() {
+ throw new Error();
+ }
+
+ public TempDescriptor [] readsTemps() {
+ return new TempDescriptor[0];
+ }
+
+ public TempDescriptor [] writesTemps() {
+ return new TempDescriptor[0];
+ }
}