Package org.jacoco.report.internal.xml
Class XMLCoverageWriter
- java.lang.Object
-
- org.jacoco.report.internal.xml.XMLCoverageWriter
-
public final class XMLCoverageWriter extends java.lang.ObjectSerializes coverage data as XML fragments.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateXMLCoverageWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteBundle(IBundleCoverage bundle, ReportElement element)Writes the structure of a given bundle.private static voidwriteClass(IClassCoverage c, ReportElement parent)static voidwriteCounters(ICoverageNode node, ReportElement parent)Writes all non-zero counters of the given node.private static voidwriteLines(ISourceNode source, ReportElement parent)private static voidwriteMethod(IMethodCoverage m, ReportElement parent)private static voidwritePackage(IPackageCoverage p, ReportElement parent)private static voidwriteSourceFile(ISourceFileCoverage s, ReportElement parent)
-
-
-
Method Detail
-
writeBundle
public static void writeBundle(IBundleCoverage bundle, ReportElement element) throws java.io.IOException
Writes the structure of a given bundle.- Parameters:
bundle- bundle coverage dataelement- container element for the bundle data- Throws:
java.io.IOException- if XML can't be written to the underlying output
-
writePackage
private static void writePackage(IPackageCoverage p, ReportElement parent) throws java.io.IOException
- Throws:
java.io.IOException
-
writeClass
private static void writeClass(IClassCoverage c, ReportElement parent) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMethod
private static void writeMethod(IMethodCoverage m, ReportElement parent) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSourceFile
private static void writeSourceFile(ISourceFileCoverage s, ReportElement parent) throws java.io.IOException
- Throws:
java.io.IOException
-
writeCounters
public static void writeCounters(ICoverageNode node, ReportElement parent) throws java.io.IOException
Writes all non-zero counters of the given node.- Parameters:
node- node to retrieve counters fromparent- container for the counter elements- Throws:
java.io.IOException- if XML can't be written to the underlying output
-
writeLines
private static void writeLines(ISourceNode source, ReportElement parent) throws java.io.IOException
- Throws:
java.io.IOException
-
-