Package nginx.clojure.asm.util

Examples of nginx.clojure.asm.util.TraceMethodVisitor


              mv = mn = new MethodNode(access, name, desc, signature, exceptions);
            }else {
              if (db.meetTraceTargetClassMethod(className, method)) {
                Printer tp = new Textifier();
                mn = new TracableMethodNode("Orginal: " + className + "." + method,  db, access, name, desc, signature, exceptions, tp, new PrintWriter(System.out));
                mv = new TraceMethodVisitor(mn, tp);
              }else {
                mv = mn = new InstrumentMethodNode(db, access, name, desc, signature, exceptions);
              }
            }
           
View Full Code Here


      String mk = ClassEntry.key(mn.name, mn.desc);
      MethodVisitor mv = super.visitMethod(mn.access, mn.name, mn.desc, mn.signature, exps);
      if (db.meetTraceTargetClassMethod(className, mk)) {
        Printer tp = new Textifier();
        TracableMethodVisitor tmv = new TracableMethodVisitor("Waved: " + className + "." + mk,  mv, mn.access, mn.name, mn.desc, mn.signature, exps, tp, new PrintWriter(System.out));
        mv = new TraceMethodVisitor(tmv, tp);
      }
      if (db.isVerify()) {
        return new JSRInlinerAdapter(new SuspendMethodVerifyAdvice(db, className, mv, mn.access, mn.name, mn.desc), mn.access, mn.name, mn.desc, mn.signature, exps);
      }
      return new JSRInlinerAdapter(mv, mn.access, mn.name, mn.desc, mn.signature, exps);
View Full Code Here

    }
   
    //for debug usage
    public static String insnToString(AbstractInsnNode insn){
        Printer printer = new Textifier();
        TraceMethodVisitor mp = new TraceMethodVisitor(printer);
        insn.accept(mp);
        StringWriter sw = new StringWriter();
        printer.print(new PrintWriter(sw));
        printer.getText().clear();
        return sw.toString();
View Full Code Here

        return sw.toString();
    }
   
    public static void methodToString(MethodNode mn) {
      Printer printer = new Textifier();
        TraceMethodVisitor mp = new TraceMethodVisitor(printer);
        mn.accept(mp);
        PrintWriter pw = new PrintWriter(System.out);
        printer.print(pw);
        pw.flush();
    }
View Full Code Here

TOP

Related Classes of nginx.clojure.asm.util.TraceMethodVisitor

Copyright © 2018 www.massapicom. 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.