Example #1
0
  public void toString(UnitPrinter up) {
    up.literal(Jimple.DYNAMICINVOKE);
    up.literal(
        " \""
            + methodRef.name()
            + "\" <"
            + SootMethod.getSubSignature(
                "" /* no method name here*/, methodRef.parameterTypes(), methodRef.returnType())
            + ">(");

    for (int i = 0; i < argBoxes.length; i++) {
      if (i != 0) up.literal(", ");

      argBoxes[i].toString(up);
    }

    up.literal(") ");
    up.methodRef(bsmRef);
    up.literal("(");

    for (int i = 0; i < bsmArgBoxes.length; i++) {
      if (i != 0) up.literal(", ");

      bsmArgBoxes[i].toString(up);
    }

    up.literal(")");
  }
  public void toString(UnitPrinter up) {
    up.literal(Jimple.v().STATICINVOKE);
    up.literal(" ");
    up.methodRef(methodRef);
    up.literal("(");

    for (int i = 0; i < argBoxes.size(); i++) {
      if (i != 0) up.literal(", ");

      getArgBox(i).toString(up);
    }

    up.literal(")");
  }