Package jdk.internal.org.objectweb.asm.util

Examples of jdk.internal.org.objectweb.asm.util.ASMifier


                    desc(MethodHandle.class, MethodHandle.class, int.class, Object[].class)));
            topOfStack(MethodHandle.class);
        }

        static void printASM(byte[] bytes, Method method) {
            ASMifier asm = new ASMifier();
            PrintWriter pw = new PrintWriter(err);
            TraceClassVisitor printer = new TraceClassVisitor(null, asm, pw);
            if (method == null)
               new ClassReader(bytes).accept(printer, SKIP_DEBUG);
            else {
                ClassNode cn = new ClassNode();
                new ClassReader(bytes).accept(cn, SKIP_DEBUG);
                find(cn.methods.stream(), mn -> mn.name.equals(method.getName())).accept(printer);
                asm.print(pw);
                pw.flush();
            }
        }
View Full Code Here


     * @param methodName
     * @throws Exception
     */
    private static void dump(Class type, String methodName) throws Exception {
        ClassReader reader = new ClassReader(type.getName());
        reader.accept(new Tracer(methodName, new ASMifier(), new PrintWriter(System.out)), 0);
    }
View Full Code Here

TOP

Related Classes of jdk.internal.org.objectweb.asm.util.ASMifier

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.