org.sonar.api.batch
Class AbstractDivisionDecorator
java.lang.Object
org.sonar.api.batch.AbstractDivisionDecorator
- All Implemented Interfaces:
- CheckProject, Decorator, BatchExtension, Extension
public abstract class AbstractDivisionDecorator
- extends java.lang.Object
- implements Decorator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDivisionDecorator
public AbstractDivisionDecorator()
getQuotientMetric
protected abstract Metric getQuotientMetric()
getDivisorMetric
protected abstract Metric getDivisorMetric()
getDividendMetric
protected abstract Metric getDividendMetric()
dependsUponMetrics
public java.util.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
shouldDecorateResource
protected boolean shouldDecorateResource(DecoratorContext context)
compute
protected double compute(Measure dividend,
Measure divisor,
boolean shouldResultBeInPercent)
Copyright © 2009 SonarSource SA. All Rights Reserved.