org.sonar.api.batch
Class AbstractFunctionComplexityDecorator

java.lang.Object
  extended by org.sonar.api.batch.AbstractFunctionComplexityDecorator
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

Deprecated. since 2.1, a formula has been implemented on the metric, so no need to have decorator anymore

@Deprecated
public abstract class AbstractFunctionComplexityDecorator
extends Object
implements Decorator

Since:
1.13

Constructor Summary
AbstractFunctionComplexityDecorator(Language language)
          Deprecated.  
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
          Deprecated. 
 List<Metric> dependsUponFileAndComplexityMetrics()
          Deprecated. Used to define upstream dependencies
 Metric generateFileComplexityMetric()
          Deprecated. Used to define downstream dependencies
 boolean shouldExecuteOnProject(Project project)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFunctionComplexityDecorator

public AbstractFunctionComplexityDecorator(Language language)
Deprecated. 
Parameters:
language - this will be use to defined whether the decorator should be executed on a project
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Deprecated. 

Specified by:
shouldExecuteOnProject in interface CheckProject

dependsUponFileAndComplexityMetrics

public List<Metric> dependsUponFileAndComplexityMetrics()
Deprecated. 
Used to define upstream dependencies


generateFileComplexityMetric

public Metric generateFileComplexityMetric()
Deprecated. 
Used to define downstream dependencies


decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Deprecated. 

Specified by:
decorate in interface Decorator
Parameters:
resource - resource that is currently decorated, equivalent of context.getResource()


Copyright © 2009-2012 SonarSource. All Rights Reserved.