/** * Looks up the <code>ProtoIdItem</code> from the given <code>DexFile</code> for the given * values * @param dexFile the <code>Dexfile</code> to find the type in * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types * @return a <code>ProtoIdItem</code> from the given <code>DexFile</code> for the given * values, or null if it doesn't exist */ public static ProtoIdItem lookupProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { ProtoIdItem protoIdItem = new ProtoIdItem(dexFile, returnType, parameters); return dexFile.ProtoIdsSection.getInternedItem(protoIdItem); }
/** * Returns a <code>ProtoIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> * @param dexFile The <code>DexFile</code> that this item belongs to * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types * @return a <code>ProtoIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static ProtoIdItem internProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { ProtoIdItem protoIdItem = new ProtoIdItem(dexFile, returnType, parameters); return dexFile.ProtoIdsSection.intern(protoIdItem); }
return new TypeIdItem(dexFile); case TYPE_PROTO_ID_ITEM: return new ProtoIdItem(dexFile); case TYPE_FIELD_ID_ITEM: return new FieldIdItem(dexFile);
/** * Returns a <code>ProtoIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> * @param dexFile The <code>DexFile</code> that this item belongs to * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types * @return a <code>ProtoIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static ProtoIdItem internProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { ProtoIdItem protoIdItem = new ProtoIdItem(dexFile, returnType, parameters); return dexFile.ProtoIdsSection.intern(protoIdItem); }
/** * Looks up the <code>ProtoIdItem</code> from the given <code>DexFile</code> for the given * values * @param dexFile the <code>Dexfile</code> to find the type in * @param returnType the return type * @param parameters a <code>TypeListItem</code> containing a list of the parameter types * @return a <code>ProtoIdItem</code> from the given <code>DexFile</code> for the given * values, or null if it doesn't exist */ public static ProtoIdItem lookupProtoIdItem(DexFile dexFile, TypeIdItem returnType, TypeListItem parameters) { ProtoIdItem protoIdItem = new ProtoIdItem(dexFile, returnType, parameters); return dexFile.ProtoIdsSection.getInternedItem(protoIdItem); }
return new TypeIdItem(dexFile); case TYPE_PROTO_ID_ITEM: return new ProtoIdItem(dexFile); case TYPE_FIELD_ID_ITEM: return new FieldIdItem(dexFile);