예제 #1
0
 /**
  * Returns the string dump of this call site.
  *
  * @return string dump.
  */
 public String toString() {
   StringBuilder sb = new StringBuilder(80);
   sb.append(id).append(" ").append(caller.getName()).append("-->");
   sb.append(fcall.getName());
   if (PrintTools.getVerbosity() >= 3) {
     sb.append(" (").append(System.identityHashCode(fcall)).append(")");
   }
   if (callee == null) {
     sb.append(" <lib>");
   } else if (temp_assignments != null) {
     // normalized arguments
     String args = temp_assignments.toString().replaceAll("\n", " ");
     sb.append(" ").append(args);
   }
   if (PrintTools.getVerbosity() >= 3) {
     sb.append("\n        parent    = ").append(fcall.getParent());
     sb.append("\n        fcall     = ").append(fcall);
     sb.append("\n        args      = ").append(arguments);
     sb.append("\n        params    = ").append(getParameters());
     sb.append("\n        nargs     = ").append(norm_arguments);
     sb.append("\n        exception = ").append(exception);
   }
   return sb.toString();
 }