MCPcopy Index your code
hub / github.com/apache/groovy / printList

Method printList

src/main/java/groovy/util/NodePrinter.java:116–134  ·  view source on GitHub ↗

Prints a node value list. @param list the list to print

(List list)

Source from the content-addressed store, hash-verified

114 * @param list the list to print
115 */
116 protected void printList(List list) {
117 if (list.isEmpty()) {
118 out.println("");
119 } else {
120 out.println(" {");
121 out.incrementIndent();
122 for (Object value : list) {
123 if (value instanceof Node) {
124 print((Node) value);
125 } else {
126 out.printIndent();
127 out.println(FormatHelper.toString(value));
128 }
129 }
130 out.decrementIndent();
131 out.printIndent();
132 out.println("}");
133 }
134 }
135
136
137 /**

Callers 1

printMethod · 0.95

Calls 7

printMethod · 0.95
toStringMethod · 0.95
incrementIndentMethod · 0.80
decrementIndentMethod · 0.80
isEmptyMethod · 0.45
printlnMethod · 0.45
printIndentMethod · 0.45

Tested by

no test coverage detected