org.sonar.plugins.core.timemachine
Class AbstractNewCoverageFileAnalyzer

java.lang.Object
  extended by org.sonar.plugins.core.timemachine.AbstractNewCoverageFileAnalyzer
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension
Direct Known Subclasses:
NewCoverageFileAnalyzer, NewItCoverageFileAnalyzer

public abstract class AbstractNewCoverageFileAnalyzer
extends Object
implements Decorator

Since:
2.7

Nested Class Summary
static class AbstractNewCoverageFileAnalyzer.PeriodStruct
           
 
Constructor Summary
AbstractNewCoverageFileAnalyzer(TimeMachineConfiguration timeMachineConfiguration)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> dependsOnMetrics()
           
 List<Metric> generatesNewCoverageMetrics()
           
abstract  Metric getConditionsByLineMetric()
           
abstract  Metric getCoverageLineHitsDataMetric()
           
abstract  Metric getCoveredConditionsByLineMetric()
           
abstract  Metric getNewConditionsToCoverMetric()
           
abstract  Metric getNewLinesToCoverMetric()
           
abstract  Metric getNewUncoveredConditionsMetric()
           
abstract  Metric getNewUncoveredLinesMetric()
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNewCoverageFileAnalyzer

public AbstractNewCoverageFileAnalyzer(TimeMachineConfiguration timeMachineConfiguration)
Method Detail

getCoverageLineHitsDataMetric

public abstract Metric getCoverageLineHitsDataMetric()

getConditionsByLineMetric

public abstract Metric getConditionsByLineMetric()

getCoveredConditionsByLineMetric

public abstract Metric getCoveredConditionsByLineMetric()

getNewLinesToCoverMetric

public abstract Metric getNewLinesToCoverMetric()

getNewUncoveredLinesMetric

public abstract Metric getNewUncoveredLinesMetric()

getNewConditionsToCoverMetric

public abstract Metric getNewConditionsToCoverMetric()

getNewUncoveredConditionsMetric

public abstract Metric getNewUncoveredConditionsMetric()

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

dependsOnMetrics

public List<Metric> dependsOnMetrics()

generatesNewCoverageMetrics

public List<Metric> generatesNewCoverageMetrics()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator
Parameters:
resource - resource that is currently decorated, equivalent of context.getResource()


Copyright © 2009-2012 SonarSource. All Rights Reserved.