Package net.sf.joafip.asm

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


    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME, I_PROXY_CALL_BACK_DELEGATION_DESC);
    methodVisitor.visitVarInsn(ILOAD, 1);
    methodVisitor.visitMethodInsn(
    /**/INVOKEINTERFACE,
    /**/I_PROXY_CALL_BACK_INTERFACE,
    /**/SET_LOADING_METHOD_NAME,
    /**/setLoadingMethodDesc);
 
View Full Code Here


    /**/GET_MY_FILE_ACCESS_SESSION_IDENTIFIER_METHOD_NAME,
    /**/getMyFileAccessSessionIdentifierClassDesc,
    /**/null,
    /**/null);
    methodVisitor.visitCode();
    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME,
    /**/I_PROXY_CALL_BACK_DELEGATION_DESC);
 
View Full Code Here

    /**/GET_INSTANCE_METHOD_NAME,
    /**/getInstanceMethodDesc,
    /**/null,
    /**/null);
    methodVisitor.visitCode();
    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME,
    /**/I_PROXY_CALL_BACK_DELEGATION_DESC);
 
View Full Code Here

      /**/null,
      /**/exceptions);

      methodVisitor.visitCode();

      methodVisitor.visitVarInsn(ALOAD, 0);
      methodVisitor.visitMethodInsn(
      /**/INVOKEVIRTUAL,
      /**/classInternalName,
      /**/INTERCEPT_METHOD_NAME,
      /**/interceptMethodDesc);
 
View Full Code Here

      /**/INVOKEVIRTUAL,
      /**/classInternalName,
      /**/INTERCEPT_METHOD_NAME,
      /**/interceptMethodDesc);

      methodVisitor.visitVarInsn(ALOAD, 0);
      final Class<?>[] parameterTypes = method.getParameterTypes();
      final int numberOfParams = parameterTypes.length;
      int paramSize = 0;
      for (int paramIndex = 0; paramIndex < numberOfParams; paramIndex++) {
        final Type type = Type.getType(parameterTypes[paramIndex]);
View Full Code Here

      final int numberOfParams = parameterTypes.length;
      int paramSize = 0;
      for (int paramIndex = 0; paramIndex < numberOfParams; paramIndex++) {
        final Type type = Type.getType(parameterTypes[paramIndex]);
        final int opcode = type.getOpcode(ILOAD);
        methodVisitor.visitVarInsn(opcode, paramSize + 1);
        paramSize += type.getSize();
      }
      final Type returnType = Type.getReturnType(method);

      methodVisitor.visitMethodInsn(
View Full Code Here

      final Label label1 = new Label();
      final Label label2 = new Label();
      methodVisitor.visitTryCatchBlock(label0, label1, label2, null);

      methodVisitor.visitLabel(label0);
      methodVisitor.visitVarInsn(ALOAD, 0);
      methodVisitor.visitMethodInsn(
      /**/INVOKEVIRTUAL,
      /**/classInternalName,
      /**/INTERCEPT_METHOD_NAME,
      /**/interceptMethodDesc);
 
View Full Code Here

      /**/INVOKEVIRTUAL,
      /**/classInternalName,
      /**/INTERCEPT_METHOD_NAME,
      /**/interceptMethodDesc);

      methodVisitor.visitVarInsn(ALOAD, 0);
      final Class<?>[] parameterTypes = method.getParameterTypes();
      final int numberOfParams = parameterTypes.length;
      int paramSize = 0;
      for (int paramIndex = 0; paramIndex < numberOfParams; paramIndex++) {
        final Type type = Type.getType(parameterTypes[paramIndex]);
View Full Code Here

      final int numberOfParams = parameterTypes.length;
      int paramSize = 0;
      for (int paramIndex = 0; paramIndex < numberOfParams; paramIndex++) {
        final Type type = Type.getType(parameterTypes[paramIndex]);
        final int opcode = type.getOpcode(ILOAD);
        methodVisitor.visitVarInsn(opcode, paramSize + 1);
        paramSize += type.getSize();
      }
      final Type returnType = Type.getReturnType(method);

      methodVisitor.visitMethodInsn(
View Full Code Here

      methodVisitor.visitLabel(label1);

      int opcode;
      if (!Type.VOID_TYPE.equals(returnType)) {
        opcode = returnType.getOpcode(ISTORE);
        methodVisitor.visitVarInsn(opcode, paramSize + 1);
      }

      methodVisitor.visitVarInsn(ALOAD, 0);
      methodVisitor.visitMethodInsn(
      /**/INVOKEVIRTUAL,
 
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.