Examples of visitInsn()


Examples of br.com.caelum.vraptor.asm.MethodVisitor.visitInsn()

    {
      MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V");
      mv.visitInsn(RETURN);
      mv.visitMaxs(1, 1);
      mv.visitEnd();
    }
    StringBuilder valueLists = new StringBuilder();
    java.lang.reflect.Type[] types = method.getGenericParameterTypes();
View Full Code Here

Examples of clojure.asm.commons.GeneratorAdapter.visitInsn()

                              cv);
      ctorgen.visitCode();
      ctorgen.loadThis();
      ctorgen.loadArgs();
      for(int i=0;i<altCtorDrops;i++)
        ctorgen.visitInsn(Opcodes.ACONST_NULL);

      ctorgen.invokeConstructor(objtype, new Method("<init>", Type.VOID_TYPE, ctorTypes));

      ctorgen.returnValue();
      ctorgen.endMethod();
View Full Code Here

Examples of com.alibaba.fastjson.asm.MethodVisitor.visitInsn()

            mw.visitVarInsn(ASTORE, context.var("instance"));
        } else {
            if (defaultConstructor != null) {
                if (Modifier.isPublic(defaultConstructor.getModifiers())) {
                    mw.visitTypeInsn(NEW, getType(context.getClazz()));
                    mw.visitInsn(DUP);
                    mw.visitMethodInsn(INVOKESPECIAL, getType(context.getClazz()), "<init>", "()V");

                    mw.visitVarInsn(ASTORE, context.var("instance"));
                } else {
                    mw.visitVarInsn(ALOAD, 0);
View Full Code Here

Examples of com.google.gwt.dev.asm.MethodVisitor.visitInsn()

        size = Math.max(size, implementingMethod.getReturnType().getSize());

        mv.visitMethodInsn(Opcodes.INVOKESTATIC,
            implementingType.getInternalName(), implementingMethod.getName(),
            implementingMethod.getDescriptor());
        mv.visitInsn(localMethod.getReturnType().getOpcode(Opcodes.IRETURN));
        mv.visitMaxs(size, var);
        mv.visitEnd();
      }
    }
  }
View Full Code Here

Examples of com.jd.glowworm.asm.MethodVisitor.visitInsn()

            mw.visitVarInsn(ASTORE, context.var("instance"));
        } else {
            if (defaultConstructor != null) {
                if (Modifier.isPublic(defaultConstructor.getModifiers())) {
                    mw.visitTypeInsn(NEW, getType(context.getClazz()));
                    mw.visitInsn(DUP);
                    mw.visitMethodInsn(INVOKESPECIAL, getType(context.getClazz()), "<init>", "()V");

                    mw.visitVarInsn(ASTORE, context.var("instance"));
                } else {
                    mw.visitVarInsn(ALOAD, 0);
View Full Code Here

Examples of com.sleepycat.asm.MethodVisitor.visitInsn()

            mv.visitMethodInsn
                (INVOKESPECIAL, superclassName, "bdbReadPriKeyField",
                 "(Lcom/sleepycat/persist/impl/EntityInput;" +
                  "Lcom/sleepycat/persist/impl/Format;)V");
        }
        mv.visitInsn(RETURN);
        mv.visitMaxs(3, 3);
        mv.visitEnd();
    }

    /**
 
View Full Code Here

Examples of erjang.beam.BlockVisitor.visitInsn()

    for (Insn insn : body) {
      if (insn.opcode == BeamOpcode.label) {
        if (bv != null) bv.visitEnd();
        bv = fv.visitLabeledBlock(((Insn.I)insn).i1);
      } else {
        bv.visitInsn(insn);
      }
    }
    if (bv != null) bv.visitEnd();
    fv.visitEnd();
  }
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn()

                if (t == 'J' || t == 'D') {
                    ++j; // adjust argument register access
                }
            }

            mv.visitInsn(RETURN);
            mv.visitMaxs(0, 0);
            mv.visitEnd();

            // emit implementation of reinvokerTarget()
            mv = cw.visitMethod(NOT_ACC_PUBLIC + ACC_FINAL, "reinvokerTarget", "()" + MH_SIG, null, null);
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.commons.GeneratorAdapter.visitInsn()

            asDouble(mv, 1);
            Label doubleOperation = new Label();
            mv.goTo(doubleOperation);
            mv.visitLabel(argTwoIsLong);
            asLong(mv, 1);
            mv.visitInsn(L2D);
            mv.goTo(doubleOperation);
            mv.visitLabel(argOneIsLong);
            isInteger(mv, 1);
            Label longOperation = new Label();
            mv.ifZCmp(IFNE, longOperation);
View Full Code Here

Examples of jodd.asm5.MethodVisitor.visitInsn()

      MethodVisitor mv = wd.dest.visitMethod(AsmUtil.ACC_STATIC, CLINIT, DESC_VOID, null, null);
      mv.visitCode();
      for (String name : wd.adviceClinits) {
        mv.visitMethodInsn(INVOKESTATIC, wd.thisReference, name, DESC_VOID);
      }
      mv.visitInsn(RETURN);
      mv.visitMaxs(0, 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.