Package org.objectweb.asm.tree

Examples of org.objectweb.asm.tree.TypeInsnNode


      case NEW:
      case ANEWARRAY:
      case CHECKCAST:
      case INSTANCEOF:
        return new TypeInsnNode(opcode, args[1]);

      case -1:
        switch (args[0].toUpperCase()) {
          case "LINE":
          case "LINENUMBER":
View Full Code Here


          for (LabelNode ln : (List<LabelNode>) tsin.labels) {
            fullInsn += ' ' + ln.getLabel().getOffset();
          }
          break;
        case AbstractInsnNode.TYPE_INSN:
          TypeInsnNode tin = (TypeInsnNode) ain;
          fullInsn += ' ' + tin.desc;
          break;
        case AbstractInsnNode.VAR_INSN:
          VarInsnNode vin = (VarInsnNode) ain;
          fullInsn += " " + vin.var;
View Full Code Here

        LabelNode initLisitener = new LabelNode();
        method.instructions.add(new JumpInsnNode(IFNULL, initLisitener));
        method.instructions.add(new InsnNode(RETURN));
        method.instructions.add(initLisitener);
        method.instructions.add(new FrameNode(F_SAME, 0, null, 0, null));
        method.instructions.add(new TypeInsnNode(NEW, tList.getInternalName()));
        method.instructions.add(new InsnNode(DUP));
        method.instructions.add(new VarInsnNode(ALOAD, 0));
        method.instructions.add(new MethodInsnNode(INVOKESPECIAL, tSuper.getInternalName(), "getListenerList", getMethodDescriptor(tList), false));
        method.instructions.add(new MethodInsnNode(INVOKESPECIAL, tList.getInternalName(), "<init>", getMethodDescriptor(VOID_TYPE, tList), false));
        method.instructions.add(new FieldInsnNode(PUTSTATIC, classNode.name, "LISTENER_LIST", tList.getDescriptor()));
View Full Code Here

TOP

Related Classes of org.objectweb.asm.tree.TypeInsnNode

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.