c991f1d72687c8157e9feddccdd160c58450178d
[IRC.git] / Robust / src / Analysis / OwnershipAnalysis / LabelNode.java
1 package Analysis.OwnershipAnalysis;
2
3 import IR.*;
4 import IR.Flat.*;
5 import java.util.*;
6
7 public class LabelNode extends OwnershipNode {
8
9     public LabelNode( TempDescriptor td ) {
10         this.td = td;
11     }
12
13
14     /////////////////
15     // equality  
16     /////////////////
17     protected TempDescriptor td;
18
19     public TempDescriptor getTempDescriptor() {
20         return td;
21     }
22
23     public boolean equals( LabelNode ln ) {
24         assert ln != null;
25         return td == ln.getTempDescriptor();
26     }
27     /////////////////
28     // end equality  
29     /////////////////
30
31
32     // for writing out
33     public String getTempDescriptorString() {
34         return td.toString();
35     }
36
37     public String toString() {
38         return "LN_"+getTempDescriptorString();
39     }
40 }