Package org.rsbot.loader.asm

Examples of org.rsbot.loader.asm.ClassAdapter


  public String getAttribute(final String key) {
    return attributes.get(key);
  }

  public byte[] process(final String key, final byte[] data) {
    final ClassAdapter adapter = adapters.get(key);
    if (adapter != null) {
      final ClassReader reader = new ClassReader(data);
      reader.accept(adapter, ClassReader.SKIP_FRAMES);
      return writers.get(key).toByteArray();
    }
View Full Code Here


    }
    return data;
  }

  public byte[] process(final String key, final InputStream is) throws IOException {
    final ClassAdapter adapter = adapters.get(key);
    if (adapter != null) {
      final ClassReader reader = new ClassReader(is);
      reader.accept(adapter, ClassReader.SKIP_FRAMES);
      return writers.get(key).toByteArray();
    }
View Full Code Here

      }
    }
  }

  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 {
View Full Code Here

TOP

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

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.