|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.report.html.CounterColumn
public class CounterColumn
Column that prints the number of missed entities and the total number for each item and a summary in the footer. If the total number of items is zero, no column is emitted at all. The implementation is stateful, instances must not be used in parallel.
Constructor Summary | |
---|---|
CounterColumn(String header,
ICoverageNode.CounterEntity entity)
Creates a new column that is based on the ICounter for the given
entity. |
Method Summary | |
---|---|
void |
footer(HTMLElement tr,
ICoverageNode total,
Resources resources,
ReportOutputFolder base)
Renders the footer for this column. |
void |
header(HTMLElement tr,
Resources resources,
ReportOutputFolder base)
Renders the header for this column. |
void |
init(List<ICoverageTableItem> items,
ICoverageNode total)
Initializes the column before any output method is called. |
void |
item(HTMLElement tr,
ICoverageTableItem item,
Resources resources,
ReportOutputFolder base)
Renders a single item in this column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CounterColumn(String header, ICoverageNode.CounterEntity entity)
ICounter
for the given
entity.
header
- column header captionentity
- counter entity for this columnMethod Detail |
---|
public void init(List<ICoverageTableItem> items, ICoverageNode total)
ICoverageTableColumn
init
in interface ICoverageTableColumn
items
- all items that will be displayed in the tabletotal
- the summary of all coverage data items in the tablepublic void header(HTMLElement tr, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
header
in interface ICoverageTableColumn
tr
- the parent table rowresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element outputpublic void footer(HTMLElement tr, ICoverageNode total, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
footer
in interface ICoverageTableColumn
tr
- the parent table rowtotal
- the summary of all coverage data items in the tableresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element outputpublic void item(HTMLElement tr, ICoverageTableItem item, Resources resources, ReportOutputFolder base) throws IOException
ICoverageTableColumn
item
in interface ICoverageTableColumn
tr
- the parent table rowitem
- the item to displayresources
- static resources that might be referencedbase
- base folder of the table
IOException
- in case of IO problems with the element output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |