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 CLASS=8;
20 NameDescriptor name_desc;
22 public TypeDescriptor(NameDescriptor name) {
23 super(name.toString());
28 public TypeDescriptor(int t) {
33 public String toString() {
35 return name_desc.toString();
37 return decodeInt(type);
40 private static String decodeInt(int type) {
53 else if (type==DOUBLE)
55 else throw new Error();