Package hudson.plugins.jacoco.report
Class ClassReport
- java.lang.Object
-
- hudson.plugins.jacoco.model.CoverageObject<SELF>
-
- hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
-
- hudson.plugins.jacoco.report.AggregatedReport<PackageReport,ClassReport,MethodReport>
-
- hudson.plugins.jacoco.report.ClassReport
-
- All Implemented Interfaces:
ModelObject
public final class ClassReport extends AggregatedReport<PackageReport,ClassReport,MethodReport>
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class hudson.plugins.jacoco.model.CoverageObject
branch, clazz, complexity, instruction, line, maxBranch, maxClazz, maxComplexity, maxInstruction, maxLine, maxMethod, method
-
-
Constructor Summary
Constructors Constructor Description ClassReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(MethodReport child)
File
getSourceFilePath()
Read the source Java file for this class.void
printHighlightedSrcFile(Writer output)
void
setName(String name)
void
setSrcFileInfo(org.jacoco.core.analysis.IClassCoverage classCov, String sourceFilePath)
String
toString()
-
Methods inherited from class hudson.plugins.jacoco.report.AggregatedReport
getChildren, getDynamic, hasChildren, hasChildrenClassCoverage, hasChildrenLineCoverage, setFailed, setParent
-
Methods inherited from class hudson.plugins.jacoco.report.AbstractReport
addCoverage, getBuild, getDisplayName, getName, getParent, getPreviousResult, sanitizeName
-
Methods inherited from class hudson.plugins.jacoco.model.CoverageObject
doGraph, getApi, getBranchCoverage, getClassCoverage, getComplexityScore, getInstructionCoverage, getLineCoverage, getMaxBranch, getMaxClazz, getMaxComplexity, getMaxInstruction, getMaxLine, getMaxMethod, getMethodCoverage, hasClassCoverage, hasLineCoverage, isFailed, printFourCoverageColumns, printRatioCell, printRatioTable, setAllCovTypes, setCoverage, setMaxBranch, setMaxClazz, setMaxComplexity, setMaxInstruction, setMaxLine, setMaxMethod
-
-
-
-
Method Detail
-
setName
public void setName(String name)
- Overrides:
setName
in classAbstractReport<PackageReport,ClassReport>
-
add
public void add(MethodReport child)
- Overrides:
add
in classAggregatedReport<PackageReport,ClassReport,MethodReport>
-
setSrcFileInfo
public void setSrcFileInfo(org.jacoco.core.analysis.IClassCoverage classCov, String sourceFilePath)
-
getSourceFilePath
public File getSourceFilePath()
Read the source Java file for this class.- Returns:
- the source Java file for this class.
-
printHighlightedSrcFile
public void printHighlightedSrcFile(Writer output)
-
toString
public String toString()
- Overrides:
toString
in classCoverageObject<ClassReport>
-
-