|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.AbstractDivisionDecorator
public abstract class AbstractDivisionDecorator
A pre-implementation to decorate metrics that are the result of a division
Constructor Summary | |
---|---|
AbstractDivisionDecorator()
|
Method Summary | |
---|---|
protected double |
compute(Measure dividend,
Measure divisor,
boolean shouldResultBeInPercent)
|
void |
decorate(Resource resource,
DecoratorContext context)
|
List<Metric> |
dependsUponMetrics()
Used to define upstream dependencies |
Metric |
generatesMetric()
Used to define downstream dependencies |
protected abstract Metric |
getDividendMetric()
|
protected abstract Metric |
getDivisorMetric()
|
protected abstract Metric |
getQuotientMetric()
|
protected boolean |
shouldDecorateResource(DecoratorContext context)
|
boolean |
shouldExecuteOnProject(Project project)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDivisionDecorator()
Method Detail |
---|
protected abstract Metric getQuotientMetric()
protected abstract Metric getDivisorMetric()
protected abstract Metric getDividendMetric()
public List<Metric> dependsUponMetrics()
public Metric generatesMetric()
public boolean shouldExecuteOnProject(Project project)
shouldExecuteOnProject
in interface CheckProject
public void decorate(Resource resource, DecoratorContext context)
decorate
in interface Decorator
resource
- resource that is currently decorated, equivalent of context.getResource()
protected boolean shouldDecorateResource(DecoratorContext context)
protected double compute(Measure dividend, Measure divisor, boolean shouldResultBeInPercent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |