Package org.objectweb.asm.util

Examples of org.objectweb.asm.util.ASMifier


        try {
//            ClassReader r = new ClassReader("byd/wms/loader/weaving/TestXMLOutput");
//            System.out.println(new String(r.b));
            System.out.println(
            ClassLoader.getSystemClassLoader());
            ASMifier mifier = new ASMifier();
//            TraceClassVisitor visitor = new TraceClassVisitor(new PrintWriter(System.out));
//            visitor.visitSource(t.TU.class.getName(), "debug");
           
            String[] args = new String[]{"-debug",t.TU.class.getName()};
            mifier.main(args);
        } catch (Exception ex) {
            Logger.getLogger(WmsTransformerNGTest.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
View Full Code Here


import java.io.PrintWriter;

public class Deasm {
    public static void main(String[] args) throws IOException {
        ClassReader cr = new ClassReader("litil.cg.samples.Sample4");
        TraceClassVisitor tcv = new TraceClassVisitor(null, new ASMifier(), new PrintWriter(System.out));

        cr.accept(tcv, 0);

    }
View Full Code Here

public class Dumper {
    public static void main(final String[] args) throws Exception {
        ClassReader cr;
        cr = new ClassReader("org.fotap.heysync.ABImpl");
        Printer printer = new ASMifier();
//        Printer printer = new Textifier();
        cr.accept(new TraceClassVisitor(null, printer, new PrintWriter(System.out)), ClassReader.SKIP_DEBUG);
    }
View Full Code Here

    return cw;
  }

  private static ClassVisitor getTracer(boolean asm) {
    if (asm) {
      return new TraceClassVisitor(null, new ASMifier(), new PrintWriter(System.out));
    } else {
      return new TraceClassVisitor(null, new Textifier(), new PrintWriter(System.out));
    }
  }
View Full Code Here

    String className = c.getName();
    String classAsPath = className.replace('.', '/') + ".class";
    InputStream asStream = c.getClassLoader().getResourceAsStream("wyvern/targets/TargetManager.class");
    ClassReader cr = new ClassReader(c.getCanonicalName());

    ASMifier ifier = new ASMifier();
    cr.accept(new TraceClassVisitor(null, ifier, new PrintWriter(System.out)),0);
  }
View Full Code Here

                file.getParentFile().mkdirs();
            if(!file.exists())
                file.createNewFile();

            PrintWriter pout = new PrintWriter(file);
            ClassVisitor cv = new TraceClassVisitor(null, textify ? new Textifier() : new ASMifier(), pout);
            if(filterImportant) cv = new ImportantInsnVisitor(cv);
            if(sortLocals) cv = new LocalVariablesSorterVisitor(cv);
            acceptor.accept(cv);
            pout.close();
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of 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.