org.sonar.plugins.totalquality
Class AbstractFormulaBasedDecorator

java.lang.Object
  extended by org.sonar.plugins.totalquality.AbstractDecorator
      extended by 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


Constructor Summary
AbstractFormulaBasedDecorator()
           
 
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 org.sonar.plugins.totalquality.AbstractDecorator
hasCode, isDir, isFile, isProj, shouldExecuteOnProject, shouldSaveMeasure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormulaBasedDecorator

public AbstractFormulaBasedDecorator()
Method Detail

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.