public abstract class AbstractGroupVisitor extends Object implements IReportGroupVisitor
| Modifier and Type | Field and Description |
|---|---|
protected CoverageNodeImpl |
total
coverage node for this group to total counters
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGroupVisitor(String name)
Creates a new group with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
handleBundle(IBundleCoverage bundle,
ISourceFileLocator locator)
Called to handle the given bundle in a specific way.
|
protected abstract void |
handleEnd()
Called to handle the end of this group in a specific way.
|
protected abstract AbstractGroupVisitor |
handleGroup(String name)
Called to handle a group with the given name in a specific way.
|
void |
visitBundle(IBundleCoverage bundle,
ISourceFileLocator locator)
Called to add a bundle to the the report.
|
void |
visitEnd()
Must be called at the end of every group.
|
IReportGroupVisitor |
visitGroup(String name)
Called to add a new group to the report.
|
protected final CoverageNodeImpl total
protected AbstractGroupVisitor(String name)
name - name for the coverage node created internallypublic final void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws IOException
IReportGroupVisitorvisitBundle in interface IReportGroupVisitorbundle - a bundle to include in the reportlocator - source locator for this bundleIOException - in case of IO problems with the report writerprotected abstract void handleBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws IOException
bundle - locator - IOExceptionpublic final IReportGroupVisitor visitGroup(String name) throws IOException
IReportGroupVisitorIReportGroupVisitor instance can be used to add nested bundles or
groups. The content of the group has to be completed before this or any
parent visitor can be used again ("deep first").visitGroup in interface IReportGroupVisitorname - name of the groupIOException - in case of IO problems with the report writerprotected abstract AbstractGroupVisitor handleGroup(String name) throws IOException
name - IOExceptionpublic final void visitEnd()
throws IOException
IOExceptionprotected abstract void handleEnd()
throws IOException
IOExceptionCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.