Home | History | Annotate | Download | only in file

Lines Matching defs:prototype

21 import com.android.dexgen.rop.type.Prototype;
28 * Representation of a method prototype reference inside a Dalvik file.
34 /** {@code non-null;} the wrapped prototype */
35 private final Prototype prototype;
37 /** {@code non-null;} the short-form of the prototype */
42 * prototype has no parameters
49 * @param prototype {@code non-null;} the constant for the prototype
51 public ProtoIdItem(Prototype prototype) {
52 if (prototype == null) {
53 throw new NullPointerException("prototype == null");
56 this.prototype = prototype;
57 this.shortForm = makeShortForm(prototype);
59 StdTypeList parameters = prototype.getParameterTypes();
65 * Creates the short-form of the given prototype.
67 * @param prototype {@code non-null;} the prototype
70 private static CstUtf8 makeShortForm(Prototype prototype) {
71 StdTypeList parameters = prototype.getParameterTypes();
75 sb.append(shortFormCharFor(prototype.getReturnType()));
119 typeIds.intern(prototype.getReturnType());
131 int returnIdx = file.getTypeIds().indexOf(prototype.getReturnType());
136 sb.append(prototype.getReturnType().toHuman());
139 StdTypeList params = prototype.getParameterTypes();
154 " // " + prototype.getReturnType().toHuman());