org.sonar.plugins.cpd.decorators
Class DuplicationDensityDecorator

java.lang.Object
  extended by org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public class DuplicationDensityDecorator
extends Object
implements Decorator


Constructor Summary
DuplicationDensityDecorator()
           
 
Method Summary
protected  Double calculate(Double dividend, Double divisor)
           
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> dependsUponMetrics()
           
 Metric generatesMetric()
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicationDensityDecorator

public DuplicationDensityDecorator()
Method Detail

dependsUponMetrics

public List<Metric> dependsUponMetrics()

generatesMetric

public Metric generatesMetric()

shouldExecuteOnProject

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

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator

calculate

protected Double calculate(Double dividend,
                           Double divisor)


Copyright © 2009-2012 SonarSource. All Rights Reserved.