Prints a node value list. @param list the list to print
(List list)
| 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 | /** |
no test coverage detected