/** * Write a JSON object whose fields are the {@linkplain ModuleRoots module roots} and whose values * are {@linkplain ModuleRoot#writePathsOn(JSONWriter) JSON arrays} containing path information. * * @param writer A {@link JSONWriter}. */ public void writePathsOn(final JSONWriter writer) { writer.startObject(); for (final ModuleRoot root : roots()) { writer.write(root.name()); root.writePathsOn(writer); } writer.endObject(); }