/** * Looks up the <code>StringDataItem</code> from the given <code>DexFile</code> for the given * string value * @param dexFile the <code>Dexfile</code> to find the string value in * @param value The string value to look up * @return a <code>StringDataItem</code> from the given <code>DexFile</code> for the given * string value, or null if it doesn't exist **/ public static StringDataItem lookupStringDataItem(DexFile dexFile, String value) { StringDataItem StringDataItem = new StringDataItem(dexFile, value); return dexFile.StringDataSection.getInternedItem(StringDataItem); }
/** * Returns a <code>StringDataItem</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 value The string value that this item represents * @return a <code>StringDataItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static StringDataItem internStringDataItem(DexFile dexFile, String value) { StringDataItem StringDataItem = new StringDataItem(dexFile, value); return dexFile.StringDataSection.intern(StringDataItem); }
return new CodeItem(dexFile); case TYPE_STRING_DATA_ITEM: return new StringDataItem(dexFile); case TYPE_DEBUG_INFO_ITEM: return new DebugInfoItem(dexFile);
/** * Returns a <code>StringDataItem</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 value The string value that this item represents * @return a <code>StringDataItem</code> for the given values, and that has been interned into * the given <code>DexFile</code> */ public static StringDataItem internStringDataItem(DexFile dexFile, String value) { StringDataItem StringDataItem = new StringDataItem(dexFile, value); return dexFile.StringDataSection.intern(StringDataItem); }
/** * Looks up the <code>StringDataItem</code> from the given <code>DexFile</code> for the given * string value * @param dexFile the <code>Dexfile</code> to find the string value in * @param value The string value to look up * @return a <code>StringDataItem</code> from the given <code>DexFile</code> for the given * string value, or null if it doesn't exist **/ public static StringDataItem lookupStringDataItem(DexFile dexFile, String value) { StringDataItem StringDataItem = new StringDataItem(dexFile, value); return dexFile.StringDataSection.getInternedItem(StringDataItem); }
return new CodeItem(dexFile); case TYPE_STRING_DATA_ITEM: return new StringDataItem(dexFile); case TYPE_DEBUG_INFO_ITEM: return new DebugInfoItem(dexFile);