Class AbstractReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends CoverageObject<SELF>>
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastcoverage.CoverageObject<SELF>
-
- com.vectorcast.plugins.vectorcastcoverage.AbstractReport<PARENT,SELF>
-
- All Implemented Interfaces:
ModelObject
- Direct Known Subclasses:
AggregatedReport,DeadEndReport
public abstract class AbstractReport<PARENT extends AggregatedReport<?,PARENT,?>,SELF extends CoverageObject<SELF>> extends CoverageObject<SELF> implements ModelObject
Base class of the coverage report tree, which maintains the details of the coverage report.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description AbstractReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCombinedCoverage(CoverageElement cv)voidaddCoverage(CoverageElement cv)Run<?,?>getBuild()Gets the build object that owns the whole coverage report tree.StringgetDisplayName()StringgetName()PARENTgetParent()Gets the back pointer to the parent coverage object.SELFgetPreviousResult()Gets the corresponding coverage report object in the previous run that has the record.voidsetName(String name)protected voidsetParent(PARENT p)Called at the last stage of the tree construction, to set the back pointer.-
Methods inherited from class com.vectorcast.plugins.vectorcastcoverage.CoverageObject
doGraph, getApi, getBasisPathCoverage, getBranchCoverage, getComplexity, getFunctionCallCoverage, getFunctionCoverage, getMaxHistory, getMaxHistoryFreestyleJob, getMaxHistoryPipelineJob, getMCDCCoverage, getStatementCoverage, hasBasisPathCoverage, hasBranchCoverage, hasComplexity, hasCoverage, hasFunctionCallCoverage, hasFunctionCoverage, hasMCDCCoverage, hasStatementCoverage, isFailed, printFourCoverageColumns, printRatioCell, printRatioTable, setFailed
-
-
-
-
Method Detail
-
addCoverage
public void addCoverage(CoverageElement cv) throws IOException
- Throws:
IOException
-
addCombinedCoverage
public void addCombinedCoverage(CoverageElement cv) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceModelObject
-
setParent
protected void setParent(PARENT p)
Called at the last stage of the tree construction, to set the back pointer.- Parameters:
p- parent
-
getParent
public PARENT getParent()
Gets the back pointer to the parent coverage object.- Returns:
- pointer to parent
-
getPreviousResult
public SELF getPreviousResult()
Description copied from class:CoverageObjectGets the corresponding coverage report object in the previous run that has the record.- Specified by:
getPreviousResultin classCoverageObject<SELF extends CoverageObject<SELF>>- Returns:
- null if no earlier record was found.
-
getBuild
public Run<?,?> getBuild()
Description copied from class:CoverageObjectGets the build object that owns the whole coverage report tree.- Specified by:
getBuildin classCoverageObject<SELF extends CoverageObject<SELF>>- Returns:
- the run instance
-
-