Home | History | Annotate | Download | only in file

Lines Matching refs:prototype

20 import com.android.dexgen.rop.type.Prototype;
28 * Proto (method prototype) identifiers list section of a
35 private final TreeMap<Prototype, ProtoIdItem> protoIds;
45 protoIds = new TreeMap<Prototype, ProtoIdItem>();
87 * @param prototype {@code non-null;} the prototype to intern
90 public ProtoIdItem intern(Prototype prototype) {
91 if (prototype == null) {
92 throw new NullPointerException("prototype == null");
97 ProtoIdItem result = protoIds.get(prototype);
100 result = new ProtoIdItem(prototype);
101 protoIds.put(prototype, result);
108 * Gets the index of the given prototype, which must have
111 * @param prototype {@code non-null;} the prototype to look up
114 public int indexOf(Prototype prototype) {
115 if (prototype == null) {
116 throw new NullPointerException("prototype == null");
121 ProtoIdItem item = protoIds.get(prototype);