public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex, boolean quote) { if (stringIndex == -1) { return "string_id_item[NO_INDEX]"; } return getReferenceAnnotation(dexFile, stringIndex, quote); }
@Nonnull public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getOptionalReferenceAnnotation(dexFile, stringIndex, false); }
break; case ItemType.STRING_ID_ITEM: annotators.put(mapItem.getType(), StringIdItem.makeAnnotator(this, mapItem)); break; case ItemType.TYPE_ID_ITEM:
break; case ItemType.STRING_ID_ITEM: annotators.put(mapItem.getType(), StringIdItem.makeAnnotator(this, mapItem)); break; case ItemType.TYPE_ID_ITEM:
@Nonnull public static String getReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getReferenceAnnotation(dexFile, stringIndex, false); }
@Nonnull public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getOptionalReferenceAnnotation(dexFile, stringIndex, false); }
break; case ItemType.STRING_ID_ITEM: annotators.put(mapItem.getType(), StringIdItem.makeAnnotator(this, mapItem)); break; case ItemType.TYPE_ID_ITEM:
public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex, boolean quote) { if (stringIndex == -1) { return "string_id_item[NO_INDEX]"; } return getReferenceAnnotation(dexFile, stringIndex, quote); }
@Nonnull public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getOptionalReferenceAnnotation(dexFile, stringIndex, false); }
public static String getOptionalReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex, boolean quote) { if (stringIndex == -1) { return "string_id_item[NO_INDEX]"; } return getReferenceAnnotation(dexFile, stringIndex, quote); }
out.annotate(4, "source_file_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, sourceFileIdx));
@Nonnull public static String getReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getReferenceAnnotation(dexFile, stringIndex, false); }
out.annotate(4, "source_file_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, sourceFileIdx));
@Nonnull public static String getReferenceAnnotation(@Nonnull DexBackedDexFile dexFile, int stringIndex) { return getReferenceAnnotation(dexFile, stringIndex, false); }
out.annotate(4, "source_file_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, sourceFileIdx));
@Override protected void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) { int stringIndex = dexFile.readSmallUint(out.getCursor()); out.annotate(4, StringIdItem.getReferenceAnnotation(dexFile, stringIndex)); } };
int paramaterIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "%s", StringIdItem.getOptionalReferenceAnnotation(dexFile, paramaterIndex, true)); int nameIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIndex, true)); int typeIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "type_idx = %s", int nameIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIndex, true)); int typeIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "type_idx = %s", int sigIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "sig_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, sigIndex, true)); out.deindent(); break; int nameIdx = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIdx)); out.deindent(); break;
@Override protected void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) { int stringIndex = dexFile.readSmallUint(out.getCursor()); out.annotate(4, StringIdItem.getReferenceAnnotation(dexFile, stringIndex)); } };
int paramaterIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "%s", StringIdItem.getOptionalReferenceAnnotation(dexFile, paramaterIndex, true)); int nameIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIndex, true)); int typeIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "type_idx = %s", int nameIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIndex, true)); int typeIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "type_idx = %s", int sigIndex = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "sig_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, sigIndex, true)); out.deindent(); break; int nameIdx = reader.readSmallUleb128() - 1; out.annotateTo(reader.getOffset(), "name_idx = %s", StringIdItem.getOptionalReferenceAnnotation(dexFile, nameIdx)); out.deindent(); break;
@Override protected void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) { int stringIndex = dexFile.readSmallUint(out.getCursor()); out.annotate(4, StringIdItem.getReferenceAnnotation(dexFile, stringIndex)); } };