minor debug enhancement

This commit is contained in:
Jonathan Shook
2021-03-12 17:24:13 -06:00
parent 3a542ec372
commit f4abdff281

View File

@@ -35,4 +35,11 @@ public class RawStmtsDocList {
public List<RawStmtsDoc> getStmtsDocs() {
return rawStmtsDocList;
}
public String toString() {
int docs = rawStmtsDocList.size();
int blocks = rawStmtsDocList.stream().map(RawStmtsDoc::getBlocks).mapToInt(List::size).sum();
long optemplates = rawStmtsDocList.stream().flatMap(d -> d.getBlocks().stream()).flatMap(s -> s.getRawStmtDefs().stream()).count();
return "docs:" + docs + " blocks:" + blocks + " optemplates:" + optemplates;
}
}