public void setApiLevel(int apiLevel) { this.opcodes = new Opcodes(apiLevel); this.apiLevel = apiLevel; }
public void setApiLevel(int apiLevel) { this.opcodes = new Opcodes(apiLevel); this.apiLevel = apiLevel; }
@Nonnull public static Opcodes forApi(int api) { return new Opcodes(api, NO_VERSION); }
@Nonnull public static Opcodes forArtVersion(int artVersion) { return new Opcodes(NO_VERSION, artVersion); }
@Nonnull public static Opcodes forArtVersion(int artVersion) { return new Opcodes(NO_VERSION, artVersion); }
@Nonnull public static Opcodes forApi(int api) { return new Opcodes(api, NO_VERSION); }
@Nonnull public static Opcodes forDexVersion(int dexVersion) { int api = VersionMap.mapDexVersionToApi(dexVersion); if (api == NO_VERSION) { throw new RuntimeException("Unsupported dex version " + dexVersion); } return new Opcodes(api, NO_VERSION); }
@Nonnull public static Opcodes forDexVersion(int dexVersion) { int api = VersionMap.mapDexVersionToApi(dexVersion); if (api == NO_VERSION) { throw new RuntimeException("Unsupported dex version " + dexVersion); } return new Opcodes(api, NO_VERSION); }
@Nonnull public static DexBackedDexFile loadDexFile(String path, int api) throws IOException { return loadDexFile(new File(path), new Opcodes(api)); }
@Nonnull public static DexBackedDexFile loadDexFile(File dexFile, int api) throws IOException { return loadDexFile(dexFile, new Opcodes(api)); }
RawDexFile rawDexFile = new RawDexFile(new Opcodes(apiLevel), dexFile); DexAnnotator annotator = new DexAnnotator(rawDexFile, consoleWidth); annotator.writeAnnotations(writer);
Opcodes opcodes = new Opcodes(ModuleContext.getInstance().getApiLevel());