Does anybody know if any tool/library exists able to assemble output of ASM Textifier into a classfile?
So, I have the following code:
final ClassReader classReader = new ClassReader(bytes);
final StringWriter writer = new StringWriter();
final PrintWriter printWriter = new PrintWriter(writer);
try {
classReader.accept(new TraceClassVisitor(null, new Textifier(), printWriter), 0);
}
finally {
printWriter.close();
}
String asmOutput = writer.toString();
Now I wish to assemble asmOutput
back to class file. Does anybody implemented such handy thing or no?
Looks like that the only solution is to use JasminifierClassAdapter.java
from ASM examples. But Jasmin itself is almost dead and outdated, so this solution is quiet imperfect.