question: public void accept ( AbstractReporter r ) { r . testStart ( this ) ; r . browserInfoEntry ( browserInfoEntry ) ; Iterator < LogEntry > entryIterator = logEntries . iterator ( ) ; while ( entryIterator . hasNext ( ) ) { LogEntry entry = entryIterator . next ( ) ; if ( ! entryIterator . hasNext ( ) ) { entry . setLast ( true ) ; } visit ( entry , r ) ; } r . testEnd ( this ) ; }
target:  Implementation of Visitor pattern. Takes the Report for a guided tour through all information stored in the TestInfo instance, from start of the test to all entries to test end. It is up to a particular implementation of the Reporter to react to different types of test info and log entries. <br> Also, detects the last log entry on the fly.