Package org.rsbot.loader.asm

Examples of org.rsbot.loader.asm.MethodVisitor.visitFieldInsn()


      final String name,
      final String desc) {
    final MethodVisitor mv = cv.visitMethod(getter_access, getter_name, getter_desc, null, null);
    mv.visitCode();
    mv.visitVarInsn(ALOAD, 0);
    mv.visitFieldInsn(GETFIELD, owner, name, desc);
    final int op = getReturnOpcode(desc);
    mv.visitInsn(op);
    mv.visitMaxs(op == LRETURN || op == DRETURN ? 2 : 1, (getter_access & ACC_STATIC) == 0 ? 1 : 0);
    mv.visitEnd();
  }
View Full Code Here


      final String owner,
      final String name,
      final String desc) {
    final MethodVisitor mv = cv.visitMethod(getter_access, getter_name, getter_desc, null, null);
    mv.visitCode();
    mv.visitFieldInsn(GETSTATIC, owner, name, desc);
    final int op = getReturnOpcode(desc);
    mv.visitInsn(op);
    mv.visitMaxs(op == LRETURN || op == DRETURN ? 2 : 1, (getter_access & ACC_STATIC) == 0 ? 1 : 0);
    mv.visitEnd();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.