org.sonar.plugins.totalquality
Class CodeDecorator

java.lang.Object
  extended by org.sonar.plugins.totalquality.AbstractDecorator
      extended by org.sonar.plugins.totalquality.AbstractFormulaBasedDecorator
          extended by org.sonar.plugins.totalquality.CodeDecorator
All Implemented Interfaces:
org.sonar.api.batch.CheckProject, org.sonar.api.batch.Decorator, org.sonar.api.BatchExtension, org.sonar.api.Extension

public class CodeDecorator
extends AbstractFormulaBasedDecorator


Constructor Summary
CodeDecorator()
           
 
Method Summary
 java.util.List<org.sonar.api.measures.Metric> dependsOnMetrics()
           
 org.sonar.api.measures.Metric generatesMetric()
           
protected  java.lang.String getLine(org.sonar.api.batch.DecoratorContext context)
           
 boolean shouldSaveMeasure(org.sonar.api.resources.Resource resource)
           
 
Methods inherited from class org.sonar.plugins.totalquality.AbstractFormulaBasedDecorator
decorate, solve
 
Methods inherited from class org.sonar.plugins.totalquality.AbstractDecorator
hasCode, isDir, isFile, isProj, shouldExecuteOnProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeDecorator

public CodeDecorator()
Method Detail

getLine

protected java.lang.String getLine(org.sonar.api.batch.DecoratorContext context)
Specified by:
getLine in class AbstractFormulaBasedDecorator

generatesMetric

public org.sonar.api.measures.Metric generatesMetric()
Specified by:
generatesMetric in class AbstractFormulaBasedDecorator

dependsOnMetrics

public java.util.List<org.sonar.api.measures.Metric> dependsOnMetrics()

shouldSaveMeasure

public boolean shouldSaveMeasure(org.sonar.api.resources.Resource resource)
Overrides:
shouldSaveMeasure in class AbstractDecorator


Copyright © 2010 SonarSource SA. All Rights Reserved.