Package hudson.plugins.jacoco.report
Class AggregatedReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends AggregatedReport<PARENT,SELF,CHILD>,CHILD extends AbstractReport<SELF,CHILD>>
- java.lang.Object
-
- hudson.plugins.jacoco.model.CoverageObject<SELF>
-
- hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
-
- hudson.plugins.jacoco.report.AggregatedReport<PARENT,SELF,CHILD>
-
- Type Parameters:
PARENT
- Parent typeSELF
- Self typeCHILD
- Child type
- All Implemented Interfaces:
ModelObject
- Direct Known Subclasses:
ClassReport
,CoverageReport
,MethodReport
,PackageReport
public abstract class AggregatedReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends AggregatedReport<PARENT,SELF,CHILD>,CHILD extends AbstractReport<SELF,CHILD>> extends AbstractReport<PARENT,SELF>
Reports that have children.- 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 AggregatedReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CHILD child)
Map<String,CHILD>
getChildren()
CHILD
getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
boolean
hasChildren()
boolean
hasChildrenClassCoverage()
boolean
hasChildrenLineCoverage()
void
setFailed()
Marks this coverage object as failed.protected void
setParent(PARENT p)
Called at the last stage of the tree construction, to set the back pointer.-
Methods inherited from class hudson.plugins.jacoco.report.AbstractReport
addCoverage, getBuild, getDisplayName, getName, getParent, getPreviousResult, sanitizeName, setName
-
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, toString
-
-
-
-
Method Detail
-
add
public void add(CHILD child)
-
setParent
protected void setParent(PARENT p)
Description copied from class:AbstractReport
Called at the last stage of the tree construction, to set the back pointer.- Overrides:
setParent
in classAbstractReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends AggregatedReport<PARENT,SELF,CHILD>>
- Parameters:
p
- parent
-
getDynamic
public CHILD getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
- Throws:
IOException
-
setFailed
public void setFailed()
Description copied from class:CoverageObject
Marks this coverage object as failed.- Overrides:
setFailed
in classCoverageObject<SELF extends AggregatedReport<PARENT,SELF,CHILD>>
- See Also:
Rule
-
hasChildren
public boolean hasChildren()
-
hasChildrenLineCoverage
public boolean hasChildrenLineCoverage()
-
hasChildrenClassCoverage
public boolean hasChildrenClassCoverage()
-
-