Package org.objectweb.asm

Examples of org.objectweb.asm.MethodVisitor.visitLocalVariable()


    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("capacity", "I", null, l0, l12, 1);
    mv.visitLocalVariable("newBuffer", "Ljava/nio/ByteBuffer;", null, l1, l12, 2);
    mv.visitLocalVariable("i", "I", null, l2, l7, 3);
    mv.visitLocalVariable("s", "I", null, l3, l7, 4);
    mv.visitLocalVariable("ref", meta.type.toString(), null, l10, l8, 3);
    mv.visitEnd();
  }

 
  private void injectStaticInitializer() {
View Full Code Here


    Label l11 = new Label();
    mv.visitLabel(l11);
    mv.visitInsn(RETURN);
    Label l12 = new Label();
    mv.visitLabel(l12);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("world", "Lcom/artemis/World;", null, l0, l12, 1);
    mv.visitLocalVariable("instances", "Lcom/artemis/utils/Bag;", "Lcom/artemis/utils/Bag<" + meta.type.toString() + ">;", l4, l12, 2);
    mv.visitEnd();
  }
 
View Full Code Here

    mv.visitLabel(l11);
    mv.visitInsn(RETURN);
    Label l12 = new Label();
    mv.visitLabel(l12);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("world", "Lcom/artemis/World;", null, l0, l12, 1);
    mv.visitLocalVariable("instances", "Lcom/artemis/utils/Bag;", "Lcom/artemis/utils/Bag<" + meta.type.toString() + ">;", l4, l12, 2);
    mv.visitEnd();
  }
 
  private void injectEnsureCapacity() {
View Full Code Here

    mv.visitInsn(RETURN);
    Label l12 = new Label();
    mv.visitLabel(l12);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("world", "Lcom/artemis/World;", null, l0, l12, 1);
    mv.visitLocalVariable("instances", "Lcom/artemis/utils/Bag;", "Lcom/artemis/utils/Bag<" + meta.type.toString() + ">;", l4, l12, 2);
    mv.visitEnd();
  }
 
  private void injectEnsureCapacity() {
    String owner = meta.type.getInternalName();
View Full Code Here

      mv.visitLabel(l2);
      mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
      mv.visitLocalVariable("id", "I", null, l0, l4, 1);
      mv.visitLocalVariable("requested", "I", null, l1, l4, 2);
    } else {
      mv.visitInsn(RETURN);
      Label l4 = new Label();
View Full Code Here

      mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
      mv.visitLocalVariable("id", "I", null, l0, l4, 1);
      mv.visitLocalVariable("requested", "I", null, l1, l4, 2);
    } else {
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
View Full Code Here

      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
      mv.visitLocalVariable("id", "I", null, l0, l4, 1);
      mv.visitLocalVariable("requested", "I", null, l1, l4, 2);
    } else {
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
View Full Code Here

      mv.visitLocalVariable("requested", "I", null, l1, l4, 2);
    } else {
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
      mv.visitLocalVariable("id", "I", null, l0, l4, 1);
    }
    mv.visitEnd();
  }
 
View Full Code Here

    } else {
      mv.visitInsn(RETURN);
      Label l4 = new Label();
      mv.visitLabel(l4);
      mv.visitLocalVariable("this", meta.type.toString(), null, l0, l4, 0);
      mv.visitLocalVariable("id", "I", null, l0, l4, 1);
    }
    mv.visitEnd();
  }
 
  private void injectForEntity() {
View Full Code Here

      mv.visitLabel(l1);
    }
    mv.visitInsn(RETURN);
    Label l2 = new Label();
    mv.visitLabel(l2);
    mv.visitLocalVariable("this", "Lcom/artemis/component/TransPackedFloatReference;", null, l0, l2, 0);
    mv.visitLocalVariable("e", "Lcom/artemis/Entity;", null, l0, l2, 1);
    mv.visitEnd();
  }
 
  private void injectReset() {
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.