public void run() {
   try {
     cls.load();
     for (IDexTreeVisitor pass : this.passes) {
       DepthTraversal.visit(pass, cls);
     }
   } catch (Exception e) {
     LOG.error("Decode exception: " + cls, e);
   }
 }
示例#2
0
 private void decompileWithoutUnload(JadxDecompiler d, ClassNode cls) {
   cls.load();
   List<IDexTreeVisitor> passes = Jadx.getPassesList(d.getArgs(), new File(outDir));
   for (IDexTreeVisitor visitor : passes) {
     DepthTraversal.visit(visitor, cls);
   }
   try {
     new CodeGen(d.getArgs()).visit(cls);
   } catch (CodegenException e) {
     e.printStackTrace();
     fail(e.getMessage());
   }
   // don't unload class
 }