Package org.objectweb.asm.tree

Examples of org.objectweb.asm.tree.MethodNode.visitLocalVariable()


      mv.visitLabel(l1);
      mv.visitLineNumber(605, l1);
      mv.visitInsn(Opcodes.RETURN);
      Label l2 = new Label();
      mv.visitLabel(l2);
      mv.visitLocalVariable("this", "Lbuildcraft/transport/Pipe;", "Lbuildcraft/transport/Pipe<TT;>;", l0, l2, 0);
      mv.visitMaxs(2, 1);
      mv.visitEnd();
    }
   
    ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
View Full Code Here


        mv.visitLabel(l2);
        mv.visitFrame(Opcodes.F_SAME1, 0, null, 1, new Object[] {Opcodes.INTEGER});
        mv.visitInsn(Opcodes.IRETURN);
        Label l3 = new Label();
        mv.visitLabel(l3);
        mv.visitLocalVariable("this", "Lbuildcraft/transport/pipes/PipeItemsSandstone;", null, l0, l3, 0);
        mv.visitLocalVariable("with", "Lnet/minecraftforge/common/util/ForgeDirection;", null, l0, l3, 1);
        mv.visitMaxs(2, 2);
        mv.visitEnd();
        node.methods.set(node.methods.indexOf(m), mv);
      }
View Full Code Here

        mv.visitFrame(Opcodes.F_SAME1, 0, null, 1, new Object[] {Opcodes.INTEGER});
        mv.visitInsn(Opcodes.IRETURN);
        Label l3 = new Label();
        mv.visitLabel(l3);
        mv.visitLocalVariable("this", "Lbuildcraft/transport/pipes/PipeItemsSandstone;", null, l0, l3, 0);
        mv.visitLocalVariable("with", "Lnet/minecraftforge/common/util/ForgeDirection;", null, l0, l3, 1);
        mv.visitMaxs(2, 2);
        mv.visitEnd();
        node.methods.set(node.methods.indexOf(m), mv);
      }
    }
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.