Package org.jacoco.report.csv
Class ClassRowWriter
- java.lang.Object
-
- org.jacoco.report.csv.ClassRowWriter
-
class ClassRowWriter extends java.lang.ObjectWriter for rows in the CVS report representing the summary data of a single class.
-
-
Field Summary
Fields Modifier and Type Field Description private static ICoverageNode.CounterEntity[]COUNTERSprivate ILanguageNameslanguageNamesprivate DelimitedWriterwriter
-
Constructor Summary
Constructors Constructor Description ClassRowWriter(DelimitedWriter writer, ILanguageNames languageNames)Creates a new row writer that writes class information to the given CSV writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidwriteHeader()voidwriteRow(java.lang.String groupName, java.lang.String packageName, IClassCoverage node)Writes the class summary information as a row.
-
-
-
Field Detail
-
COUNTERS
private static final ICoverageNode.CounterEntity[] COUNTERS
-
writer
private final DelimitedWriter writer
-
languageNames
private final ILanguageNames languageNames
-
-
Constructor Detail
-
ClassRowWriter
public ClassRowWriter(DelimitedWriter writer, ILanguageNames languageNames) throws java.io.IOException
Creates a new row writer that writes class information to the given CSV writer.- Parameters:
writer- writer for csv outputlanguageNames- converter for Java identifiers- Throws:
java.io.IOException- in case of problems with the writer
-
-
Method Detail
-
writeHeader
private void writeHeader() throws java.io.IOException- Throws:
java.io.IOException
-
writeRow
public void writeRow(java.lang.String groupName, java.lang.String packageName, IClassCoverage node) throws java.io.IOExceptionWrites the class summary information as a row.- Parameters:
groupName- name of the grouppackageName- vm name of the packagenode- class coverage data- Throws:
java.io.IOException- in case of problems with the writer
-
-