Home | History | Annotate | Download | only in file

Lines Matching refs:Prototype

21 import com.android.dx.rop.type.Prototype;
28 * Representation of a method prototype reference inside a Dalvik file.
31 /** {@code non-null;} the wrapped prototype */
32 private final Prototype prototype;
34 /** {@code non-null;} the short-form of the prototype */
39 * prototype has no parameters
46 * @param prototype {@code non-null;} the constant for the prototype
48 public ProtoIdItem(Prototype prototype) {
49 if (prototype == null) {
50 throw new NullPointerException("prototype == null");
53 this.prototype = prototype;
54 this.shortForm = makeShortForm(prototype);
56 StdTypeList parameters = prototype.getParameterTypes();
62 * Creates the short-form of the given prototype.
64 * @param prototype {@code non-null;} the prototype
67 private static CstString makeShortForm(Prototype prototype) {
68 StdTypeList parameters = prototype.getParameterTypes();
72 sb.append(shortFormCharFor(prototype.getReturnType()));
116 typeIds.intern(prototype.getReturnType());
128 int returnIdx = file.getTypeIds().indexOf(prototype.getReturnType());
133 sb.append(prototype.getReturnType().toHuman());
136 StdTypeList params = prototype.getParameterTypes();
151 " // " + prototype.getReturnType().toHuman());