Package org.objectweb.asm.tree

Examples of org.objectweb.asm.tree.MultiANewArrayInsnNode


        new int[0], new LabelNode[0]));
  }

  @Test
  public void testMultiANewArrayInsn() {
    testInstructionBetweenFrames(new MultiANewArrayInsnNode(
        "java/lang/String", 4));
  }
View Full Code Here


                        frame.pop();
                        canThrowException = true;
                        break;
                       
                    case MULTIANEWARRAY:
                        MultiANewArrayInsnNode minode = (MultiANewArrayInsnNode) ain;
                        int dims = minode.dims;
                        frame.popn(dims);
                        componentType = TypeDesc.getInterned(minode.desc);
                        StringBuffer sb = new StringBuffer(componentType.length()
                                + dims);
View Full Code Here

        switch (args[0].toUpperCase()) {
          case "LINE":
          case "LINENUMBER":
            return new LineNumberNode(toint(args[1]), getLabelNode(toint(args[2])));// FIXME
          case "MULTIANEWARRAY":
            return new MultiANewArrayInsnNode(args[1], toint(args[2]));
          case "TABLESWITCH":
          case "SWITCH":
            return new TableSwitchInsnNode(toint(args[1]), toint(args[2]),
                getLabelNode(toint(args[3])), getLabelNode(toint(args[4]))); // FIXME arg4 is a
                                                                             // varargs
View Full Code Here

          fullInsn += ' ' + min.name;
          fullInsn += ' ' + min.desc;
          fullInsn += " " + min.itf;
          break;
        case AbstractInsnNode.MULTIANEWARRAY_INSN:
          MultiANewArrayInsnNode manin = (MultiANewArrayInsnNode) ain;
          fullInsn += ' ' + manin.desc;
          fullInsn += " " + manin.dims;
          break;
        case AbstractInsnNode.TABLESWITCH_INSN:
          TableSwitchInsnNode tsin = (TableSwitchInsnNode) ain;
View Full Code Here

  @Override
    public MultiANewArrayInsnNode deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
    JsonObject jsonObject = (JsonObject) json;
    String desc = jsonObject.get("desc").getAsString();
    int dims = jsonObject.get("dims").getAsInt();
        return new MultiANewArrayInsnNode(desc, dims);
    }
View Full Code Here

TOP

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

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.