IReportGroupVisitor
HTMLGroupVisitor
, XMLGroupVisitor
public abstract class AbstractGroupVisitor extends java.lang.Object implements IReportGroupVisitor
Modifier and Type | Field | Description |
---|---|---|
protected CoverageNodeImpl |
total |
coverage node for this group to total counters
|
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractGroupVisitor(java.lang.String name) |
Creates a new group with the given name.
|
Modifier and Type | Method | 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(java.lang.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(java.lang.String name) |
Called to add a new group to the report.
|
protected final CoverageNodeImpl total
protected AbstractGroupVisitor(java.lang.String name)
name
- name for the coverage node created internallypublic final void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
IReportGroupVisitor
visitBundle
in interface IReportGroupVisitor
bundle
- a bundle to include in the reportlocator
- source locator for this bundlejava.io.IOException
- in case of IO problems with the report writerprotected abstract void handleBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
bundle
- analyzed bundlelocator
- source locatorjava.io.IOException
- if the report can't be writtenpublic final IReportGroupVisitor visitGroup(java.lang.String name) throws java.io.IOException
IReportGroupVisitor
IReportGroupVisitor
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 IReportGroupVisitor
name
- name of the groupjava.io.IOException
- in case of IO problems with the report writerprotected abstract AbstractGroupVisitor handleGroup(java.lang.String name) throws java.io.IOException
name
- name of the groupjava.io.IOException
- if the report can't be writtenpublic final void visitEnd() throws java.io.IOException
java.io.IOException
- if the report can't be writtenprotected abstract void handleEnd() throws java.io.IOException
java.io.IOException
- if the report can't be writtenCopyright © 2018. All rights reserved.