Package net.sf.joafip.asm

Examples of net.sf.joafip.asm.MethodVisitor.visitLdcInsn()


      Label l0 = new Label();
      Label l1 = new Label();
      Label l2 = new Label();
      mv.visitTryCatchBlock(l0, l1, l2, "java/lang/Exception");
      mv.visitLabel(l0);
      mv.visitLdcInsn("net.sf.joafip.store.service.proxy.StaticProxyCallBack");
      mv.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName",
          "(Ljava/lang/String;)Ljava/lang/Class;");
      mv.visitVarInsn(ASTORE, 3);
      mv.visitVarInsn(ALOAD, 3);
      mv.visitVarInsn(ALOAD, 2);
View Full Code Here


      mv.visitVarInsn(ALOAD, 2);
      mv.visitInsn(ICONST_1);
      mv.visitTypeInsn(ANEWARRAY, "java/lang/Class");
      mv.visitInsn(DUP);
      mv.visitInsn(ICONST_0);
      mv.visitLdcInsn(Type.getType("Ljava/lang/Object;"));
      mv.visitInsn(AASTORE);
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Class", "getMethod",
          "(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;");
      mv.visitVarInsn(ASTORE, 4);
      mv.visitVarInsn(ALOAD, 4);
View Full Code Here

    }
    {
      mv = cw.visitMethod(ACC_PUBLIC, "method", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitLdcInsn("hello");
      mv.visitLdcInsn(Type
          .getType("Lnet/sf/joafip/store/service/bytecode/ToPersist;"));
      mv.visitMethodInsn(INVOKESPECIAL, "net/sf/joafip/asm/Ldc", "x",
          "(Ljava/lang/String;Ljava/lang/Class;)V");
      mv.visitInsn(RETURN);
View Full Code Here

    {
      mv = cw.visitMethod(ACC_PUBLIC, "method", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitLdcInsn("hello");
      mv.visitLdcInsn(Type
          .getType("Lnet/sf/joafip/store/service/bytecode/ToPersist;"));
      mv.visitMethodInsn(INVOKESPECIAL, "net/sf/joafip/asm/Ldc", "x",
          "(Ljava/lang/String;Ljava/lang/Class;)V");
      mv.visitInsn(RETURN);
      mv.visitMaxs(3, 1);
View Full Code Here

      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>",
          "()V");
      mv.visitVarInsn(ASTORE, 1);
      mv.visitVarInsn(ALOAD, 0);
      mv.visitVarInsn(ALOAD, 1);
      mv.visitLdcInsn("xxx");
      mv.visitMethodInsn(INVOKESPECIAL, "net/sf/joafip/asm/InvokeStatic",
          "invokeStatic", "(Ljava/lang/Object;Ljava/lang/String;)V");
      mv.visitInsn(RETURN);
      mv.visitMaxs(3, 2);
      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.