Lines Matching defs:Type

28 public final class Type implements TypeBearer, Comparable<Type> {
33 private static final HashMap<String, Type> internTable =
34 new HashMap<String, Type>(500);
73 public static final Type BOOLEAN = new Type("Z", BT_BOOLEAN);
76 public static final Type BYTE = new Type("B", BT_BYTE);
79 public static final Type CHAR = new Type("C", BT_CHAR);
82 public static final Type DOUBLE = new Type("D", BT_DOUBLE);
85 public static final Type FLOAT = new Type("F", BT_FLOAT);
88 public static final Type INT = new Type("I", BT_INT);
91 public static final Type LONG = new Type("J", BT_LONG);
94 public static final Type SHORT = new Type("S", BT_SHORT);
97 public static final Type VOID = new Type("V", BT_VOID);
100 public static final Type KNOWN_NULL = new Type("<null>", BT_OBJECT);
103 public static final Type RETURN_ADDRESS = new Type("<addr>", BT_ADDR);
128 public static final Type ANNOTATION =
132 public static final Type CLASS = intern("Ljava/lang/Class;");
135 public static final Type CLONEABLE = intern("Ljava/lang/Cloneable;");
138 public static final Type OBJECT = intern("Ljava/lang/Object;");
141 public static final Type SERIALIZABLE = intern("Ljava/io/Serializable;");
144 public static final Type STRING = intern("Ljava/lang/String;");
147 public static final Type THROWABLE = intern("Ljava/lang/Throwable;");
154 public static final Type BOOLEAN_CLASS = intern("Ljava/lang/Boolean;");
161 public static final Type BYTE_CLASS = intern("Ljava/lang/Byte;");
168 public static final Type CHARACTER_CLASS = intern("Ljava/lang/Character;");
175 public static final Type DOUBLE_CLASS = intern("Ljava/lang/Double;");
182 public static final Type FLOAT_CLASS = intern("Ljava/lang/Float;");
189 public static final Type INTEGER_CLASS = intern("Ljava/lang/Integer;");
196 public static final Type LONG_CLASS = intern("Ljava/lang/Long;");
203 public static final Type SHORT_CLASS = intern("Ljava/lang/Short;");
210 public static final Type VOID_CLASS = intern("Ljava/lang/Void;");
213 public static final Type BOOLEAN_ARRAY = BOOLEAN.getArrayType();
216 public static final Type BYTE_ARRAY = BYTE.getArrayType();
219 public static final Type CHAR_ARRAY = CHAR.getArrayType();
222 public static final Type DOUBLE_ARRAY = DOUBLE.getArrayType();
225 public static final Type FLOAT_ARRAY = FLOAT.getArrayType();
228 public static final Type INT_ARRAY = INT.getArrayType();
231 public static final Type LONG_ARRAY = LONG.getArrayType();
234 public static final Type OBJECT_ARRAY = OBJECT.getArrayType();
237 public static final Type SHORT_ARRAY = SHORT.getArrayType();
267 private Type arrayType;
273 private Type componentType;
279 private Type initializedType;
293 public static Type intern(String descriptor) {
294 Type result;
364 result = new Type(descriptor, BT_OBJECT);
379 public static Type internReturnType(String descriptor) {
406 public static Type internClassName(String name) {
428 private Type(String descriptor, int basicType, int newAt) {
458 private Type(String descriptor, int basicType) {
473 if (!(other instanceof Type)) {
477 return descriptor.equals(((Type) other).descriptor);
487 public int compareTo(Type other) {
522 public Type getType() {
527 public Type getFrameType() {
704 * {@code getBasicType() == Type.BT_OBJECT}.
764 public Type getInitializedType() {
778 public Type getArrayType() {
780 arrayType = putIntern(new Type('[' + descriptor, BT_OBJECT));
792 public Type getComponentType() {
812 public Type asUninitialized(int newAt) {
837 Type result = new Type(newDesc, BT_OBJECT, newAt);
850 private static Type putIntern(Type type) {
853 Type already = internTable.get(descriptor);