org.sonar.plugins.totalquality
Class AbstractFormulaBasedDecorator
java.lang.Object
org.sonar.plugins.totalquality.AbstractDecorator
org.sonar.plugins.totalquality.AbstractFormulaBasedDecorator
- All Implemented Interfaces:
- org.sonar.api.batch.CheckProject, org.sonar.api.batch.Decorator, org.sonar.api.BatchExtension, org.sonar.api.Extension
- Direct Known Subclasses:
- ArchitectureDecorator, CodeDecorator, DesignDecorator, TestDecorator, TotalQualityDecorator
public abstract class AbstractFormulaBasedDecorator
- extends AbstractDecorator
|
Method Summary |
void |
decorate(org.sonar.api.resources.Resource resource,
org.sonar.api.batch.DecoratorContext context)
|
abstract org.sonar.api.measures.Metric |
generatesMetric()
|
protected abstract java.lang.String |
getLine(org.sonar.api.batch.DecoratorContext context)
|
protected java.lang.Double |
solve(org.sonar.api.batch.DecoratorContext context,
java.lang.String formula)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFormulaBasedDecorator
public AbstractFormulaBasedDecorator()
generatesMetric
public abstract org.sonar.api.measures.Metric generatesMetric()
getLine
protected abstract java.lang.String getLine(org.sonar.api.batch.DecoratorContext context)
decorate
public void decorate(org.sonar.api.resources.Resource resource,
org.sonar.api.batch.DecoratorContext context)
solve
protected java.lang.Double solve(org.sonar.api.batch.DecoratorContext context,
java.lang.String formula)
Copyright © 2010 SonarSource SA. All Rights Reserved.