class GVirtualInvokeExpr extends AbstractVirtualInvokeExpr implements Precedence {
  public GVirtualInvokeExpr(Value base, SootMethodRef methodRef, List<? extends Value> args) {
    super(Grimp.v().newObjExprBox(base), methodRef, new ValueBox[args.size()]);

    final Grimp grmp = Grimp.v();
    for (ListIterator<? extends Value> it = args.listIterator(); it.hasNext();) {
      Value v = it.next();
      this.argBoxes[it.previousIndex()] = grmp.newExprBox(v);
    }
  }

  @Override
  public int getPrecedence() {
    return 950;
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}

  @Override
  public void toString(UnitPrinter up) {
    final boolean needsBrackets = PrecedenceTest.needsBrackets(baseBox, this);
    if (needsBrackets) {
      up.literal("(");
    }
    baseBox.toString(up);
    if (needsBrackets) {
      up.literal(")");
    }
    up.literal(".");
    up.methodRef(methodRef);
    up.literal("(");
    if (argBoxes != null) {
      for (int i = 0, e = argBoxes.length; i < e; i++) {
        if (i != 0) {
          up.literal(", ");
        }
        argBoxes[i].toString(up);
      }
    }
    up.literal(")");
  }

  @Override
  public Object clone() {
    final int count = getArgCount();
    List<Value> clonedArgs = new ArrayList<Value>(count);
    for (int i = 0; i < count; i++) {
      clonedArgs.add(Grimp.cloneIfNecessary(getArg(i)));
    }
    return new GVirtualInvokeExpr(Grimp.cloneIfNecessary(getBase()), methodRef, clonedArgs);
  }
}

    final Value base = getBase();
    String baseString = base.toString();
    if (base instanceof Precedence && ((Precedence) base).getPrecedence() < getPrecedence()) {
      baseString = "(" + baseString + ")";
    }

    StringBuilder buf = new StringBuilder(baseString);

    buf.append('.').append(methodRef.getSignature()).append('(');
    if (argBoxes != null) {
      for (int i = 0, e = argBoxes.length; i < e; i++) {
        if (i != 0) {
          buf.append(", ");
        }
        buf.append(argBoxes[i].getValue().toString());
      }
    }
    buf.append(')');

    return buf.toString();
  
<methods>public void apply(soot.util.Switch) ,public void convertToBaf(soot.jimple.JimpleToBafContext, List<soot.Unit>) ,public int equivHashCode() ,public boolean equivTo(java.lang.Object) ,public java.lang.String toString() ,public void toString(soot.UnitPrinter) <variables>