Package limpidlog.org.objectweb.asm

Examples of limpidlog.org.objectweb.asm.Type


    for (int index = 0; index < argumentTypes.length; index++) {
      String variableName = getLocalVariableName(argIndex);
      if (variableName == null)
        continue;

      Type type = argumentTypes[index];
      int opcode = type.getOpcode(Opcodes.ILOAD);
      String functionDesc = makeFunctionType(type);

      super.visitLdcInsn(variableName);
      super.visitMethodInsn(INVOKEVIRTUAL, "limpidlog/log/Log", "addName", functionDescForString);
      super.visitVarInsn(opcode, argIndex);
      super.visitMethodInsn(INVOKEVIRTUAL, "limpidlog/log/Log", "addValue", functionDesc);

      argIndex += type.getSize();
    }
  }
View Full Code Here


    String variableName = getLocalVariableName(var);
    if (variableName == null)
      return;

    Type type = getTypeFromOpcode(opcode);
    String functionDesc = makeFunctionType(type);

    super.visitTypeInsn(NEW, "limpidlog/log/Log");
    super.visitInsn(DUP);
    super.visitLdcInsn(makeWhere(currentLine));
    super.visitLdcInsn(EVENT_STORE);
    super.visitMethodInsn(INVOKESPECIAL, "limpidlog/log/Log", "<init>",
      "(Ljava/lang/String;Ljava/lang/String;)V");
    super.visitLdcInsn(variableName);
    super.visitMethodInsn(INVOKEVIRTUAL, "limpidlog/log/Log", "addName", functionDescForString);
    super.visitVarInsn(type.getOpcode(Opcodes.ILOAD), var);
    super.visitMethodInsn(INVOKEVIRTUAL, "limpidlog/log/Log", "addValue", functionDesc);
    super.visitMethodInsn(INVOKEVIRTUAL, "limpidlog/log/Log", "log", "()V");
  }
View Full Code Here

TOP

Related Classes of limpidlog.org.objectweb.asm.Type

Copyright © 2018 www.massapicom. 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.