|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.report.internal.xml.XMLElement
org.jacoco.report.internal.xml.ReportElement
public class ReportElement
A XMLElement with utility methods to create JaCoCo XML reports.
| Field Summary |
|---|
| Fields inherited from class org.jacoco.report.internal.xml.XMLElement |
|---|
writer |
| Constructor Summary | |
|---|---|
ReportElement(String name,
OutputStream output,
String encoding)
Creates a report root element for a XML report. |
|
| Method Summary | |
|---|---|
ReportElement |
classElement(org.jacoco.core.analysis.IClassCoverage coverage)
Creates a 'class' element. |
void |
counter(org.jacoco.core.analysis.ICoverageNode.CounterEntity counterEntity,
org.jacoco.core.analysis.ICounter counter)
Creates a 'counter' element. |
ReportElement |
element(String name)
Creates a new child element for this element. |
ReportElement |
group(String name)
Creates a 'group' element. |
void |
line(int nr,
org.jacoco.core.analysis.ILine line)
Creates a 'line' element. |
ReportElement |
method(org.jacoco.core.analysis.IMethodCoverage coverage)
Creates a 'method' element. |
ReportElement |
packageElement(String name)
Creates a 'package' element. |
void |
sessioninfo(org.jacoco.core.data.SessionInfo info)
Creates a 'sessioninfo' element. |
ReportElement |
sourcefile(String name)
Creates a 'sourcefile' element. |
| Methods inherited from class org.jacoco.report.internal.xml.XMLElement |
|---|
attr, attr, attr, close, text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportElement(String name,
OutputStream output,
String encoding)
throws IOException
report root element for a XML report.
name - value for the name attributeencoding - character encoding used for outputoutput - output stream will be closed if the root element is closed
IOException - in case of problems with the underlying output| Method Detail |
|---|
public ReportElement element(String name)
throws IOException
XMLElement
element in class XMLElementname - name of the child element
IOException - in case of problems with the underlying output
public void sessioninfo(org.jacoco.core.data.SessionInfo info)
throws IOException
info - info object to write out
IOException - in case of problems with the underlying output
public ReportElement group(String name)
throws IOException
name - value for the name attribute
IOException - in case of problems with the underlying output
public ReportElement packageElement(String name)
throws IOException
name - value for the name attribute
IOException - in case of problems with the underlying output
public ReportElement classElement(org.jacoco.core.analysis.IClassCoverage coverage)
throws IOException
coverage - class coverage node to write out
IOException - in case of problems with the underlying output
public ReportElement method(org.jacoco.core.analysis.IMethodCoverage coverage)
throws IOException
coverage - method coverage node to write out
IOException - in case of problems with the underlying output
public ReportElement sourcefile(String name)
throws IOException
name - value for the name attribute
IOException - in case of problems with the underlying output
public void line(int nr,
org.jacoco.core.analysis.ILine line)
throws IOException
nr - line numberline - line object to write out
IOException - in case of problems with the underlying output
public void counter(org.jacoco.core.analysis.ICoverageNode.CounterEntity counterEntity,
org.jacoco.core.analysis.ICounter counter)
throws IOException
counterEntity - entity of this countercounter - counter object to write out
IOException - in case of problems with the underlying output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||