Search in sources :

Example 11 with Textifier

use of org.objectweb.asm.util.Textifier in project bytecode-viewer by Konloch.

the class ASMTextifierDisassembler method decompileClassNode.

@Override
public String decompileClassNode(ClassNode cn, byte[] b) {
    StringWriter writer = new StringWriter();
    cn.accept(new TraceClassVisitor(null, new Textifier(), new PrintWriter(writer)));
    return writer.toString();
}
Also used : TraceClassVisitor(org.objectweb.asm.util.TraceClassVisitor) StringWriter(java.io.StringWriter) Textifier(org.objectweb.asm.util.Textifier) PrintWriter(java.io.PrintWriter)

Example 12 with Textifier

use of org.objectweb.asm.util.Textifier in project groovy by apache.

the class LoggableTextifier method visitArray.

@Override
public Textifier visitArray(String name) {
    Textifier t = super.visitArray(name);
    log();
    return t;
}
Also used : Textifier(org.objectweb.asm.util.Textifier)

Example 13 with Textifier

use of org.objectweb.asm.util.Textifier in project groovy by apache.

the class LoggableTextifier method visitField.

@Override
public Textifier visitField(int access, String name, String desc, String signature, Object value) {
    Textifier t = super.visitField(access, name, desc, signature, value);
    log();
    return t;
}
Also used : Textifier(org.objectweb.asm.util.Textifier)

Example 14 with Textifier

use of org.objectweb.asm.util.Textifier in project groovy by apache.

the class LoggableTextifier method visitMethod.

@Override
public Textifier visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
    Textifier t = super.visitMethod(access, name, desc, signature, exceptions);
    log();
    return t;
}
Also used : Textifier(org.objectweb.asm.util.Textifier)

Example 15 with Textifier

use of org.objectweb.asm.util.Textifier in project groovy by apache.

the class LoggableTextifier method visitAnnotation.

@Override
public Textifier visitAnnotation(String desc, boolean visible) {
    Textifier t = super.visitAnnotation(desc, visible);
    log();
    return t;
}
Also used : Textifier(org.objectweb.asm.util.Textifier)

Aggregations

Textifier (org.objectweb.asm.util.Textifier)32 PrintWriter (java.io.PrintWriter)15 StringWriter (java.io.StringWriter)10 TraceClassVisitor (org.objectweb.asm.util.TraceClassVisitor)10 ClassReader (org.objectweb.asm.ClassReader)8 TraceMethodVisitor (org.objectweb.asm.util.TraceMethodVisitor)8 IOException (java.io.IOException)5 ClassWriter (org.objectweb.asm.ClassWriter)4 File (java.io.File)3 ClassVisitor (org.objectweb.asm.ClassVisitor)3 URL (java.net.URL)2 ArrayList (java.util.ArrayList)2 LinkedHashMap (java.util.LinkedHashMap)2 List (java.util.List)2 Map (java.util.Map)2 DrillConfig (org.apache.drill.common.config.DrillConfig)2 QueryClassLoader (org.apache.drill.exec.compile.QueryClassLoader)2 SystemOptionManager (org.apache.drill.exec.server.options.SystemOptionManager)2 LocalPersistentStoreProvider (org.apache.drill.exec.store.sys.store.provider.LocalPersistentStoreProvider)2 AbstractInsnNode (org.objectweb.asm.tree.AbstractInsnNode)2