org.sonar.plugins.core.sensors
Class ItBranchCoverageDecorator

java.lang.Object
  extended by org.sonar.plugins.core.sensors.AbstractCoverageDecorator
      extended by org.sonar.plugins.core.sensors.ItBranchCoverageDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public final class ItBranchCoverageDecorator
extends AbstractCoverageDecorator


Constructor Summary
ItBranchCoverageDecorator()
           
 
Method Summary
protected  long countCoveredElements(DecoratorContext context)
           
protected  long countCoveredElementsForNewCode(DecoratorContext context, int periodIndex)
           
protected  Long countElements(DecoratorContext context)
           
protected  Long countElementsForNewCode(DecoratorContext context, int periodIndex)
           
 List<Metric> dependsUponMetrics()
           
protected  Metric getGeneratedMetric()
           
protected  Metric getGeneratedMetricForNewCode()
           
 
Methods inherited from class org.sonar.plugins.core.sensors.AbstractCoverageDecorator
decorate, generatedMetrics, shouldDecorate, shouldExecuteOnProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItBranchCoverageDecorator

public ItBranchCoverageDecorator()
Method Detail

dependsUponMetrics

public List<Metric> dependsUponMetrics()

getGeneratedMetric

protected Metric getGeneratedMetric()
Specified by:
getGeneratedMetric in class AbstractCoverageDecorator

countElements

protected Long countElements(DecoratorContext context)
Specified by:
countElements in class AbstractCoverageDecorator

countCoveredElements

protected long countCoveredElements(DecoratorContext context)
Specified by:
countCoveredElements in class AbstractCoverageDecorator

getGeneratedMetricForNewCode

protected Metric getGeneratedMetricForNewCode()
Specified by:
getGeneratedMetricForNewCode in class AbstractCoverageDecorator

countElementsForNewCode

protected Long countElementsForNewCode(DecoratorContext context,
                                       int periodIndex)
Specified by:
countElementsForNewCode in class AbstractCoverageDecorator

countCoveredElementsForNewCode

protected long countCoveredElementsForNewCode(DecoratorContext context,
                                              int periodIndex)
Specified by:
countCoveredElementsForNewCode in class AbstractCoverageDecorator


Copyright © 2009-2012 SonarSource. All Rights Reserved.