org.sonar.api.batch
Class AbstractDirectoriesDecorator
java.lang.Object
org.sonar.api.batch.AbstractDirectoriesDecorator
- All Implemented Interfaces:
- CheckProject, Decorator, BatchExtension, Extension
public abstract class AbstractDirectoriesDecorator
- extends Object
- implements Decorator
A pre-implementation to decorate the number of directories
- Since:
- 1.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDirectoriesDecorator
public AbstractDirectoriesDecorator(Language language)
- Parameters:
language
- this will be use to defined whether the decorator should be executed on a project
shouldExecuteOnProject
public boolean shouldExecuteOnProject(Project project)
-
- Specified by:
shouldExecuteOnProject
in interface CheckProject
generateDirectoriesMetric
public Metric generateDirectoriesMetric()
- Used to define downstream dependencies
decorate
public void decorate(Resource resource,
DecoratorContext context)
-
- Specified by:
decorate
in interface Decorator
Copyright © 2009-2010 SonarSource SA. All Rights Reserved.