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 FLOAT=6;
16 public static final int DOUBLE=7;
17 public static final int VOID=8;
18 public static final int CLASS=9;
22 NameDescriptor name_desc;
24 public TypeDescriptor(NameDescriptor name) {
25 super(name.toString());
30 public TypeDescriptor(int t) {
35 public String toString() {
37 return name_desc.toString();
39 return decodeInt(type);
42 private static String decodeInt(int type) {
55 else if (type==DOUBLE)
59 else throw new Error();