use of org.jetbrains.org.objectweb.asm.util.TraceClassVisitor in project intellij-community by JetBrains.
the class ByteCodeViewerManager method processClassFile.
private static String processClassFile(byte[] bytes) {
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();
}
return writer.toString();
}
Aggregations