コード例 #1
0
  /**
   * Prints out the contents of this instance, in a debugging-friendly way. This is meant to be
   * called from {@link ClassDefItem#debugPrint}.
   *
   * @param out {@code non-null;} where to output to
   */
  /* package */ void debugPrint(PrintWriter out) {
    if (classAnnotations != null) {
      out.println("  class annotations: " + classAnnotations);
    }

    if (fieldAnnotations != null) {
      out.println("  field annotations:");
      for (FieldAnnotationStruct item : fieldAnnotations) {
        out.println("    " + item.toHuman());
      }
    }

    if (methodAnnotations != null) {
      out.println("  method annotations:");
      for (MethodAnnotationStruct item : methodAnnotations) {
        out.println("    " + item.toHuman());
      }
    }

    if (parameterAnnotations != null) {
      out.println("  parameter annotations:");
      for (ParameterAnnotationStruct item : parameterAnnotations) {
        out.println("    " + item.toHuman());
      }
    }
  }