类org.objectweb.asm.util.ASMifier源码实例Demo

下面列出了怎么用org.objectweb.asm.util.ASMifier的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: pinpoint   文件: ASMBytecodeDisassembler.java
public String dumpASM(byte[] bytecode) {
    if (bytecode == null) {
        throw new NullPointerException("bytecode");
    }

    return writeBytecode(bytecode, new ASMifier());
}
 
源代码2 项目: CodeChickenLib   文件: ASMHelper.java
public static void dump(Acceptor acceptor, File file, boolean filterImportant, boolean sortLocals, boolean textify) {
    try {
        if(!file.getParentFile().exists())
            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) {
        throw new RuntimeException(e);
    }
}
 
源代码3 项目: SIMVA-SoS   文件: OriginalBytecodeGen.java
public void main (String[] args) throws IOException {
    for (String arg: args) {
        new ClassReader(OriginalBytecodeGen.class.getResourceAsStream((arg+".class")))
                .accept(new TraceClassVisitor(null, new ASMifier(), new PrintWriter(new File((arg+".txt")))), 0);
    }
}
 
源代码4 项目: groovy   文件: JO.java
public static void main(String[] args) throws Exception {
        ASMifier.main(new String[]{"target/classes/groovy/swing/SwingBuilder.class"});
//        ASMifierClassVisitor.main(new String[]{"target/classes/org/codehaus/groovy/runtime/callsite/PogoMetaMethodSite.class"});
//        ASMifierClassVisitor.main(new String[]{"target/test-classes/spectralnorm.class"});
//        ASMifierClassVisitor.main(new String[]{"target/test-classes/groovy/bugs/CustomMetaClassTest.class"});
    }
 
源代码5 项目: attic-polygene-java   文件: ASMTest.java
@Test
public void generateASM()
    throws Exception
{
    ASMifier.main( new String[]{ SomeMixin_Stubx.class.getName() } );
}
 
源代码6 项目: QuickTheories   文件: CoverageTransformerTest.java
protected void printClass(final byte[] bs) {
  final ClassReader reader = new ClassReader(bs);
  reader.accept(new TraceClassVisitor(null, new ASMifier(), new PrintWriter(
      System.out)), ClassReader.EXPAND_FRAMES);
}
 
源代码7 项目: pitest   文件: MutatorTestBase.java
protected void printMutant(final Mutant mutant) {
   final ClassReader reader = new ClassReader(mutant.getBytes());
   reader.accept(new TraceClassVisitor(null, new ASMifier(), new PrintWriter(
       System.out)), ClassReader.EXPAND_FRAMES);
}
 
源代码8 项目: pitest   文件: CoverageTransformerTest.java
protected void printClass(final byte[] bs) {
  final ClassReader reader = new ClassReader(bs);
  reader.accept(new TraceClassVisitor(null, new ASMifier(), new PrintWriter(
      System.out)), ClassReader.EXPAND_FRAMES);
}
 
源代码9 项目: beetl2.0   文件: ASMSource.java
/**
 * @param args
 */
public static void main(String[] args) throws Exception {
	// TODO Auto-generated method stub
	ASMifier.main(new String[] { "org.beetl.performance.lab.asm.PrivateTestGet" });

}
 
源代码10 项目: beetl2.0   文件: ASMSource.java
/**
 * @param args
 */
public static void main(String[] args) throws Exception {
	// TODO Auto-generated method stub
	ASMifier.main(new String[] { "com.beetl.performance.lab.asm.field.UserIdFiledAccess" });

}
 
源代码11 项目: beetl2.0   文件: ASMSource.java
/**
 * @param args
 */
public static void main(String[] args) throws Exception {
	// TODO Auto-generated method stub
	ASMifier.main(new String[] { "org.beetl.performance.lab.asm.PrivateTestGet" });

}
 
源代码12 项目: beetl2.0   文件: ASMSource.java
/**
 * @param args
 */
public static void main(String[] args) throws Exception {
	// TODO Auto-generated method stub
	ASMifier.main(new String[] { "com.beetl.performance.lab.asm.field.UserIdFiledAccess" });

}
 
 类所在包
 类方法
 同包方法