/** * Returns a <code>TypeIdItem</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 will belong to * @param typeDescriptor The <code>StringIdItem</code> containing the type descriptor that * this <code>TypeIdItem</code> represents * @return a <code>TypeIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static TypeIdItem internTypeIdItem(DexFile dexFile, StringIdItem typeDescriptor) { TypeIdItem typeIdItem = new TypeIdItem(dexFile, typeDescriptor); return dexFile.TypeIdsSection.intern(typeIdItem); }
/** * Looks up the <code>TypeIdItem</code> from the given <code>DexFile</code> for the given * type descriptor * @param dexFile the <code>Dexfile</code> to find the type in * @param typeDescriptor The string containing the type descriptor to look up * @return a <code>TypeIdItem</code> from the given <code>DexFile</code> for the given * type descriptor, or null if it doesn't exist */ public static TypeIdItem lookupTypeIdItem(DexFile dexFile, String typeDescriptor) { StringIdItem stringIdItem = StringIdItem.lookupStringIdItem(dexFile, typeDescriptor); if (stringIdItem == null) { return null; } TypeIdItem typeIdItem = new TypeIdItem(dexFile, stringIdItem); return dexFile.TypeIdsSection.getInternedItem(typeIdItem); }
/** * Returns a <code>TypeIdItem</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 will belong to * @param typeDescriptor The string containing the type descriptor that this * <code>TypeIdItem</code> represents * @return a <code>TypeIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static TypeIdItem internTypeIdItem(DexFile dexFile, String typeDescriptor) { StringIdItem stringIdItem = StringIdItem.internStringIdItem(dexFile, typeDescriptor); if (stringIdItem == null) { return null; } TypeIdItem typeIdItem = new TypeIdItem(dexFile, stringIdItem); return dexFile.TypeIdsSection.intern(typeIdItem); }
return new StringIdItem(dexFile); case TYPE_TYPE_ID_ITEM: return new TypeIdItem(dexFile); case TYPE_PROTO_ID_ITEM: return new ProtoIdItem(dexFile);
/** * Returns a <code>TypeIdItem</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 will belong to * @param typeDescriptor The <code>StringIdItem</code> containing the type descriptor that * this <code>TypeIdItem</code> represents * @return a <code>TypeIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static TypeIdItem internTypeIdItem(DexFile dexFile, StringIdItem typeDescriptor) { TypeIdItem typeIdItem = new TypeIdItem(dexFile, typeDescriptor); return dexFile.TypeIdsSection.intern(typeIdItem); }
/** * Looks up the <code>TypeIdItem</code> from the given <code>DexFile</code> for the given * type descriptor * @param dexFile the <code>Dexfile</code> to find the type in * @param typeDescriptor The string containing the type descriptor to look up * @return a <code>TypeIdItem</code> from the given <code>DexFile</code> for the given * type descriptor, or null if it doesn't exist */ public static TypeIdItem lookupTypeIdItem(DexFile dexFile, String typeDescriptor) { StringIdItem stringIdItem = StringIdItem.lookupStringIdItem(dexFile, typeDescriptor); if (stringIdItem == null) { return null; } TypeIdItem typeIdItem = new TypeIdItem(dexFile, stringIdItem); return dexFile.TypeIdsSection.getInternedItem(typeIdItem); }
/** * Returns a <code>TypeIdItem</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 will belong to * @param typeDescriptor The string containing the type descriptor that this * <code>TypeIdItem</code> represents * @return a <code>TypeIdItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static TypeIdItem internTypeIdItem(DexFile dexFile, String typeDescriptor) { StringIdItem stringIdItem = StringIdItem.internStringIdItem(dexFile, typeDescriptor); if (stringIdItem == null) { return null; } TypeIdItem typeIdItem = new TypeIdItem(dexFile, stringIdItem); return dexFile.TypeIdsSection.intern(typeIdItem); }
return new StringIdItem(dexFile); case TYPE_TYPE_ID_ITEM: return new TypeIdItem(dexFile); case TYPE_PROTO_ID_ITEM: return new ProtoIdItem(dexFile);