Package org.objectweb.asm.tree

Examples of org.objectweb.asm.tree.IntInsnNode


         }
         case BIPUSH:
         case SIPUSH:
         {
            assert(insn instanceof IntInsnNode);
            IntInsnNode intInsn = (IntInsnNode)insn;
            return new ConstantValue.IntegerConstant(intInsn.operand);
         }
         case GETSTATIC:
         {
            assert(insn instanceof FieldInsnNode);
View Full Code Here


    public IntInsnNode deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
        JsonObject jsonObject = (JsonObject) json;
        int opcode, operand;
        opcode = jsonObject.get("opcode").getAsInt();
        operand = jsonObject.get("operand").getAsInt();
        return new IntInsnNode(opcode, operand);
    }
View Full Code Here

      case IFNONNULL:
        return new JumpInsnNode(opcode, getLabelNode(toint(args[1]))); // this was annoying to do.

      case BIPUSH:
      case SIPUSH:
        return new IntInsnNode(opcode, toint(args[1]));
      case NEWARRAY:
        return new IntInsnNode(opcode, getOperandTypeFromString(args[1]));

      case LDC:
        if (args[1].charAt(0) == '"') {
          return new LdcInsnNode(args[1].replace("\\n", "\n").substring(1));
        } else if (args[1].charAt(0) == 'L' && args[1].charAt(args[1].length()) == ';') {
View Full Code Here

          } else {
            fullInsn += " " + lin.cst;
          }
          break;
        case AbstractInsnNode.INT_INSN:
          IntInsnNode iin1 = (IntInsnNode) ain;
          fullInsn += " " + iin1.operand;
          break;
        case AbstractInsnNode.LINE:
          fullInsn =
              "LINENUMBER " + ((LineNumberNode) ain).line + " "
View Full Code Here

TOP

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

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.