Search in sources :

Example 1 with NonloadingClassWriter

use of net.runelite.asm.objectwebasm.NonloadingClassWriter in project runelite by runelite.

the class JarUtil method writeClass.

public static byte[] writeClass(ClassGroup group, ClassFile cf) {
    ClassWriter writer = new NonloadingClassWriter(group, ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
    CheckClassAdapter cca = new CheckClassAdapter(writer, false);
    cf.accept(cca);
    byte[] data = writer.toByteArray();
    validateDataFlow(cf.getName(), data);
    return data;
}
Also used : NonloadingClassWriter(net.runelite.asm.objectwebasm.NonloadingClassWriter) CheckClassAdapter(org.objectweb.asm.util.CheckClassAdapter) ClassWriter(org.objectweb.asm.ClassWriter) NonloadingClassWriter(net.runelite.asm.objectwebasm.NonloadingClassWriter)

Aggregations

NonloadingClassWriter (net.runelite.asm.objectwebasm.NonloadingClassWriter)1 ClassWriter (org.objectweb.asm.ClassWriter)1 CheckClassAdapter (org.objectweb.asm.util.CheckClassAdapter)1