class BriefUnitPrinter extends LabeledUnitPrinter {

  private boolean baf;

  public BriefUnitPrinter(Body body) {
    super(body);
  }

  @Override
  public void startUnit(Unit u) {
    super.startUnit(u);
    baf = !(u instanceof Stmt);
  }

  @Override
  public void methodRef(SootMethodRef m) {
    handleIndent();
    if (!baf && m.resolve().isStatic()) {
      output.append(m.getDeclaringClass().getName());
      literal(".");
    }
    output.append(m.name());
  }

  @Override
  public void fieldRef(SootFieldRef f) {
    handleIndent();
    if (baf || f.resolve().isStatic()) {
      output.append(f.declaringClass().getName());
      literal(".");
    }
    output.append(f.name());
  }

  @Override
  public void identityRef(IdentityRef r) {<FILL_FUNCTION_BODY>}

  private boolean eatSpace = false;

  @Override
  public void literal(String s) {
    handleIndent();
    if (eatSpace && " ".equals(s)) {
      eatSpace = false;
      return;
    }
    eatSpace = false;
    if (!baf) {
      switch (s) {
        case Jimple.STATICINVOKE:
        case Jimple.VIRTUALINVOKE:
        case Jimple.INTERFACEINVOKE:
          eatSpace = true;
          return;
      }
    }
    output.append(s);
  }

  @Override
  public void type(Type t) {
    handleIndent();
    output.append(t.toString());
  }
}

    handleIndent();
    if (r instanceof ThisRef) {
      literal("@this");
    } else if (r instanceof ParameterRef) {
      ParameterRef pr = (ParameterRef) r;
      literal("@parameter" + pr.getIndex());
    } else if (r instanceof CaughtExceptionRef) {
      literal("@caughtexception");
    } else {
      throw new RuntimeException();
    }
  
<methods>public void <init>(soot.Body) ,public Map<soot.Unit,java.lang.String> labels() ,public Map<soot.Unit,java.lang.String> references() ,public void unitRef(soot.Unit, boolean) <variables>protected java.lang.String labelIndent,protected Map<soot.Unit,java.lang.String> labels,protected Map<soot.Unit,java.lang.String> references