Package org.rsbot.loader.asm

Examples of org.rsbot.loader.asm.ClassWriter


  }

  private ClassVisitor delegate(final String clazz) {
    final ClassAdapter delegate = adapters.get(clazz);
    if (delegate == null) {
      final ClassWriter writer = new ClassWriter(0);
      writers.put(clazz, writer);
      return writer;
    } else {
      return delegate;
    }
View Full Code Here


      try {
        final InputStream in = getResourceAsStream(name.replace('.', '/') + ".class");
        byte[] bytes = IOHelper.read(in);

        final ClassReader reader = new ClassReader(bytes);
        final ClassWriter writer = new ClassWriter(0);
        reader.accept(new RemappingClassAdapter(writer, ScriptMapper.getInstance()), ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
        bytes = writer.toByteArray();

        clazz = defineClass(name, bytes, 0, bytes.length, domain);
        if (resolve) {
          resolveClass(clazz);
        }
View Full Code Here

TOP

Related Classes of org.rsbot.loader.asm.ClassWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.