Package nginx.clojure.asm

Examples of nginx.clojure.asm.ClassWriter.toByteArray()


            return null;
        }
        db.trace("TRANSFORM: %s", r.getClassName());
        InstrumentClass ic = new InstrumentClass(r.getClassName(), ce, cv, db, false);
        r.accept(ic, ClassReader.SKIP_FRAMES);
        return cw.toByteArray();
    }
   
  public static void dumpClass(byte[] classfileBuffer, File df, MethodDatabase db)  {
    try{
      RandomAccessFile raf = new RandomAccessFile(df, "rw");
View Full Code Here


            return new JSRInlinerAdapter(new SuspendMethodTracerAdvice(db, className, mv, access, name, desc), access, name, desc, signature, exceptions);
          }
        };

        cr.accept(cv, ClassReader.EXPAND_FRAMES);
        byte[] rt = cw.toByteArray();
       
        if (db.isDump()) {
          File wavedFile = new File(new File(db.getDumpDir() + "/waved-by-tool"), className + ".class");
                    wavedFile.getParentFile().mkdirs();
                    dumpClass(rt, wavedFile, db);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.