org.sonar.plugins.cpd.decorators
Class DuplicationDensityDecorator
java.lang.Object
org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator
- All Implemented Interfaces:
- CheckProject, Decorator, BatchComponent, BatchExtension, Extension
public class DuplicationDensityDecorator
- extends Object
- implements Decorator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DuplicationDensityDecorator
public DuplicationDensityDecorator()
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.