hudson.plugins.jacoco.report
Class MethodReport

java.lang.Object
  extended by hudson.plugins.jacoco.model.CoverageObject<SELF>
      extended by hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
          extended by hudson.plugins.jacoco.report.AggregatedReport<ClassReport,MethodReport,SourceFileReport>
              extended by hudson.plugins.jacoco.report.MethodReport
All Implemented Interfaces:
hudson.model.ModelObject

public final class MethodReport
extends AggregatedReport<ClassReport,MethodReport,SourceFileReport>

Author:
Kohsuke Kawaguchi, David Carver, Ognjen Bubalo

Field Summary
 String desc
           
 String lineNo
           
 String sourceFilePath
           
 
Fields inherited from class hudson.plugins.jacoco.model.CoverageObject
branch, clazz, complexity, instruction, line, maxBranch, maxClazz, maxComplexity, maxCoveredBranch, maxCoveredClazz, maxCoveredComplexity, maxCoveredInstruction, maxCoveredLine, maxCoveredMethod, maxInstruction, maxLine, maxMethod, maxMissedBranch, maxMissedClazz, maxMissedComplexity, maxMissedInstruction, maxMissedLine, maxMissedMethod, method
 
Constructor Summary
MethodReport()
           
 
Method Summary
 void add(SourceFileReport child)
           
 String getDesc(String desc)
           
 String getDisplayName()
           
 String getSourceFilePath()
           
 String printFourCoverageColumns()
          Used in the view to print out four table columns with the coverage info.
 String printHighlightedSrcFile()
           
 void readFile(String filePath)
           
 void setDesc(String desc)
           
 void setSourceFilePath(String sourceFilePath)
           
 void setSrcFileInfo(org.jacoco.core.analysis.IMethodCoverage methodCov, String sourceFilePath)
           
 
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, getName, getParent, getPreviousResult, setName
 
Methods inherited from class hudson.plugins.jacoco.model.CoverageObject
doGraph, getApi, getBranchCoverage, getClassCoverage, getComplexityScore, getInstructionCoverage, getLineCoverage, getMaxCoveredBranch, getMaxCoveredClazz, getMaxCoveredComplexity, getMaxCoveredInstruction, getMaxCoveredLine, getMaxCoveredMethod, getMaxMissedBranch, getMaxMissedClazz, getMaxMissedComplexity, getMaxMissedInstruction, getMaxMissedLine, getMaxMissedMethod, getMethodCoverage, hasClassCoverage, hasLineCoverage, isFailed, printRatioCell, printRatioTable, setAllCovTypes, setCoverage, setMaxCoveredBranch, setMaxCoveredClazz, setMaxCoveredComplexity, setMaxCoveredInstruction, setMaxCoveredLine, setMaxCoveredMethod, setMaxMissedBranch, setMaxMissedClazz, setMaxMissedComplexity, setMaxMissedInstruction, setMaxMissedLine, setMaxMissedMethod, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

desc

public String desc

lineNo

public String lineNo

sourceFilePath

public String sourceFilePath
Constructor Detail

MethodReport

public MethodReport()
Method Detail

getSourceFilePath

public String getSourceFilePath()

setSourceFilePath

public void setSourceFilePath(String sourceFilePath)

setDesc

public void setDesc(String desc)

getDesc

public String getDesc(String desc)

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class AbstractReport<ClassReport,MethodReport>

readFile

public void readFile(String filePath)
              throws FileNotFoundException,
                     IOException
Throws:
FileNotFoundException
IOException

printFourCoverageColumns

public String printFourCoverageColumns()
Description copied from class: CoverageObject
Used in the view to print out four table columns with the coverage info.

Overrides:
printFourCoverageColumns in class CoverageObject<MethodReport>

add

public void add(SourceFileReport child)
Overrides:
add in class AggregatedReport<ClassReport,MethodReport,SourceFileReport>

setSrcFileInfo

public void setSrcFileInfo(org.jacoco.core.analysis.IMethodCoverage methodCov,
                           String sourceFilePath)

printHighlightedSrcFile

public String printHighlightedSrcFile()


Copyright © 2004-2013 Hudson. All Rights Reserved.