|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.report.internal.AbstractGroupVisitor
public abstract class AbstractGroupVisitor
Internal base visitor to calculate group counter summaries for hierarchical reports.
| Field Summary | |
|---|---|
protected org.jacoco.core.analysis.CoverageNodeImpl |
total
coverage node for this group to total counters |
| Constructor Summary | |
|---|---|
protected |
AbstractGroupVisitor(String name)
Creates a new group with the given name. |
| Method Summary | |
|---|---|
protected abstract void |
handleBundle(org.jacoco.core.analysis.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(org.jacoco.core.analysis.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.jacoco.core.analysis.CoverageNodeImpl total
| Constructor Detail |
|---|
protected AbstractGroupVisitor(String name)
name - name for the coverage node created internally| Method Detail |
|---|
public final void visitBundle(org.jacoco.core.analysis.IBundleCoverage bundle,
ISourceFileLocator locator)
throws IOException
IReportGroupVisitor
visitBundle in interface IReportGroupVisitorbundle - a bundle to include in the reportlocator - source locator for this bundle
IOException - in case of IO problems with the report writer
protected abstract void handleBundle(org.jacoco.core.analysis.IBundleCoverage bundle,
ISourceFileLocator locator)
throws IOException
bundle - analyzed bundlelocator - source locator
IOException - if the report can't be written
public 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 group
IOException - in case of IO problems with the report writer
protected abstract AbstractGroupVisitor handleGroup(String name)
throws IOException
name - name of the group
IOException - if the report can't be written
public final void visitEnd()
throws IOException
IOException - if the report can't be written
protected abstract void handleEnd()
throws IOException
IOException - if the report can't be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||