updates
[IRC.git] / Robust / src / IR / NameDescriptor.java
1 package IR;
2
3 public class NameDescriptor extends Descriptor {
4     String identifier;
5     NameDescriptor nd;
6     public NameDescriptor(NameDescriptor nd, String id) {
7         super(nd.toString()+"."+id);
8         identifier=id;
9         this.nd=nd;
10     }
11
12     public NameDescriptor(String id) {
13         super(id);
14         identifier=id;
15         nd=null;
16     }
17
18     public String toString() {
19         if (nd==null) 
20             return identifier;
21         else
22             return nd+"."+identifier;
23     }
24
25 }