Package jodd.asm5

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


      for (String name : wd.adviceInits) {
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKESPECIAL, wd.thisReference, name, DESC_VOID);
      }
    }
    mv.visitInsn(RETURN);
    mv.visitMaxs(0, 0);
    mv.visitEnd();
  }

  /**
 
View Full Code Here

                } else

                if (isSetArgumentMethod(mname, mdesc)) {           // [R5]
                  int argIndex = this.getArgumentIndex();
                  checkArgumentIndex(td.msign, argIndex);
                  mv.visitInsn(POP);
                  storeMethodArgumentFromObject(mv, td.msign, argIndex);
                  return;
                } else

                if (isCreateArgumentsArrayMethod(mname, mdesc)) {  // [R6]
View Full Code Here

                }

                if (isSetArgumentMethod(mname, mdesc)) {           // [R5]
                  int argIndex = this.getArgumentIndex();
                  checkArgumentIndex(td.msign, argIndex);
                  mv.visitInsn(POP);
                  storeMethodArgumentFromObject(mv, td.msign, argIndex);
                  return;
                }

                if (isCreateArgumentsArrayMethod(mname, mdesc)) {  // [R6]
View Full Code Here

                if (isTargetMethodAnnotationMethod(mname, mdesc)) {
                  String[] args = getLastTwoStringArguments();

                  // pop current two args
                  mv.visitInsn(POP);
                  mv.visitInsn(POP);

                  ProxyTargetReplacement.targetMethodAnnotation(mv, td.msign, args);
                  return;
                }
View Full Code Here

                if (isTargetMethodAnnotationMethod(mname, mdesc)) {
                  String[] args = getLastTwoStringArguments();

                  // pop current two args
                  mv.visitInsn(POP);
                  mv.visitInsn(POP);

                  ProxyTargetReplacement.targetMethodAnnotation(mv, td.msign, args);
                  return;
                }
View Full Code Here

                if (isTargetClassAnnotationMethod(mname, mdesc)) {
                  String[] args = getLastTwoStringArguments();

                  // pop current two args
                  mv.visitInsn(POP);
                  mv.visitInsn(POP);

                  ProxyTargetReplacement.targetClassAnnotation(mv, td.msign.getClassInfo(), args);
                  return;
                }
View Full Code Here

                if (isTargetClassAnnotationMethod(mname, mdesc)) {
                  String[] args = getLastTwoStringArguments();

                  // pop current two args
                  mv.visitInsn(POP);
                  mv.visitInsn(POP);

                  ProxyTargetReplacement.targetClassAnnotation(mv, td.msign.getClassInfo(), args);
                  return;
                }
              }
View Full Code Here

      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

      for (String name : wd.adviceInits) {
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKESPECIAL, 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.