public final class XMLCoverageWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
static XMLElement |
createChild(XMLElement parent,
String tagname,
String name)
Creates a child element with a name attribute.
|
static void |
writeBundle(org.jacoco.core.analysis.IBundleCoverage bundle,
XMLElement element)
Writes the structure of a given bundle.
|
static void |
writeCounters(org.jacoco.core.analysis.ICoverageNode node,
XMLElement parent)
Writes all non-zero counters of the given node.
|
public static XMLElement createChild(XMLElement parent, String tagname, String name) throws IOException
parent - parent elementtagname - name of the child tagname - value of the name attributeIOException - if XML can't be written to the underlying outputpublic static void writeBundle(org.jacoco.core.analysis.IBundleCoverage bundle,
XMLElement element)
throws IOException
bundle - bundle coverage dataelement - container element for the bundle dataIOException - if XML can't be written to the underlying outputpublic static void writeCounters(org.jacoco.core.analysis.ICoverageNode node,
XMLElement parent)
throws IOException
node - node to retrieve counters fromparent - container for the counter elementsIOException - if XML can't be written to the underlying outputCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.