Fixed some analysis problems...
[repair.git] / Repair / RepairCompiler / MCC / IR / TypeDescriptor.java
1 package MCC.IR;
2
3 /**
4  * TypeDescriptor 
5  *
6  * represents types in the language (bit, short, etc. as well as structures)
7  */
8
9 public abstract class TypeDescriptor extends Descriptor {
10     static int counter=0;
11     int idnum;
12     boolean subclass;
13
14
15     public int getId() {
16         return idnum;
17     }
18
19     public TypeDescriptor(String name) {
20         super(name);
21         if (!(this instanceof MissingTypeDescriptor))
22             idnum=counter++;
23         subclass=false;
24     }
25
26     public boolean isSubtypeOf(TypeDescriptor td) {
27         return false;
28     }
29
30     public TypeDescriptor getGenerateType() {
31         return this;
32     }
33
34     public abstract Expr getSizeExpr();
35
36 }