6 * represents a symbol in the language (var name, function name, etc).
9 public class TypeDescriptor extends Descriptor {
10 public static final int BYTE=1;
11 public static final int SHORT=2;
12 public static final int INT=3;
13 public static final int LONG=4;
14 public static final int CHAR=5;
15 public static final int BOOLEAN=6;
16 public static final int FLOAT=7;
17 public static final int DOUBLE=8;
18 public static final int VOID=9;
19 public static final int CLASS=10;
23 NameDescriptor name_desc;
25 public TypeDescriptor(NameDescriptor name) {
26 super(name.toString());
31 public TypeDescriptor(int t) {
36 public String toString() {
38 return name_desc.toString();
40 return decodeInt(type);
43 private static String decodeInt(int type) {
46 else if (type==BOOLEAN)
58 else if (type==DOUBLE)
62 else throw new Error();