Lines Matching refs:type

19 import com.android.dx.rop.type.Type;
23 * Constants that represent an arbitrary type (reference or primitive).
60 /** {@code non-null;} instance corresponding to the type {@code boolean[]} */
63 /** {@code non-null;} instance corresponding to the type {@code byte[]} */
66 /** {@code non-null;} instance corresponding to the type {@code char[]} */
69 /** {@code non-null;} instance corresponding to the type {@code double[]} */
72 /** {@code non-null;} instance corresponding to the type {@code float[]} */
75 /** {@code non-null;} instance corresponding to the type {@code long[]} */
78 /** {@code non-null;} instance corresponding to the type {@code int[]} */
81 /** {@code non-null;} instance corresponding to the type {@code short[]} */
84 /** {@code non-null;} the underlying type */
85 private final Type type;
88 * {@code null-ok;} the type descriptor corresponding to this instance, if
95 * class corresponding to a given primitive type. For example, if
99 * @param primitiveType {@code non-null;} the primitive type
119 * Returns an interned instance of this class for the given type.
121 * @param type {@code non-null;} the underlying type
124 public static CstType intern(Type type) {
126 CstType cst = interns.get(type);
129 cst = new CstType(type);
130 interns.put(type, cst);
140 * @param type {@code non-null;} the underlying type
142 public CstType(Type type) {
143 if (type == null) {
144 throw new NullPointerException("type == null");
147 if (type == type.KNOWN_NULL) {
152 this.type = type;
163 return type == ((CstType) other).type;
169 return type.hashCode();
175 String thisDescriptor = type.getDescriptor();
176 String otherDescriptor = ((CstType) other).type.getDescriptor();
183 return "type{" + toHuman() + '}';
194 return "type";
205 return type.toHuman();
209 * Gets the underlying type (as opposed to the type corresponding
213 * @return {@code non-null;} the type corresponding to the name
216 return type;
220 * Gets the type descriptor for this instance.
226 descriptor = new CstString(type.getDescriptor());
233 * Returns a human readable package name for this type, like "java.util".
234 * If this is an array type, this returns the package name of the array's
235 * component type. If this is a primitive type, this returns "default".