org.objectweb.asm.util.ASMifier Java Examples
The following examples show how to use
org.objectweb.asm.util.ASMifier.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ASMBytecodeDisassembler.java From pinpoint with Apache License 2.0 | 6 votes |
public String dumpASM(byte[] bytecode) { if (bytecode == null) { throw new NullPointerException("bytecode"); } return writeBytecode(bytecode, new ASMifier()); }
Example #2
Source File: ASMHelper.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 6 votes |
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); } }
Example #3
Source File: OriginalBytecodeGen.java From SIMVA-SoS with Apache License 2.0 | 4 votes |
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); } }
Example #4
Source File: JO.java From groovy with Apache License 2.0 | 4 votes |
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"}); }
Example #5
Source File: ASMTest.java From attic-polygene-java with Apache License 2.0 | 4 votes |
@Test public void generateASM() throws Exception { ASMifier.main( new String[]{ SomeMixin_Stubx.class.getName() } ); }
Example #6
Source File: CoverageTransformerTest.java From QuickTheories with Apache License 2.0 | 4 votes |
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); }
Example #7
Source File: MutatorTestBase.java From pitest with Apache License 2.0 | 4 votes |
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); }
Example #8
Source File: CoverageTransformerTest.java From pitest with Apache License 2.0 | 4 votes |
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); }
Example #9
Source File: ASMSource.java From beetl2.0 with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @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" }); }
Example #10
Source File: ASMSource.java From beetl2.0 with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @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" }); }
Example #11
Source File: ASMSource.java From beetl2.0 with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @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" }); }
Example #12
Source File: ASMSource.java From beetl2.0 with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @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" }); }