Tables { public Stream<List<TableCell>> getRows() { return nodes.select("TableBody > TableRow").stream() .map( tr -> tr.getChildren().stream() .map(tc -> (TableCell) tc.getItem()) .collect(Collectors.toList())); } Tables(JCas jCas); Tables withColumn(String p); Tables withColumn(Pattern p); Stream<List<TableCell>> getFilteredRows(); Stream<TableCell> getFilteredCells(); Stream<Table> getTables(); Stream<List<TableCell>> getRows(); Stream<TableCell> getCells();  }
@Test public void testGetRows() throws Exception { assertEquals(3, tables.getRows().count()); }