/** ***************************************************************************** */
  synchronized FileState usesClasses(Map<String, FileState> clsmap) {
    FileState fs = null;

    fs = clsmap.get(class_name);
    if (count_data == null) return fs;

    return count_data.usesClasses(clsmap, fs);
  }
  synchronized void longReport(IvyXmlWriter xw) {
    xw.begin("TEST");
    xw.field("NAME", test_name);
    xw.field("STATUS", test_status);
    xw.field("STATE", test_state);
    xw.field("CLASS", class_name);
    if (test_class != null) xw.field("TCLASS", test_class);
    xw.field("METHOD", method_name);

    if (fail_message != null) {
      xw.cdataElement("EXCEPTION", fail_message);
      xw.cdataElement("TRACE", fail_trace);
    }

    if (count_data != null) count_data.report(xw);

    for (String s : annotation_types) {
      xw.textElement("ANNOT", s);
    }

    xw.end("TEST");
  }
  @Override
  public synchronized UseMode usesMethod(String mthd) {
    if (count_data == null) return UseMode.UNKNOWN;

    return count_data.getMethodUsage(mthd);
  }