org.sonar.api.batch
Class AbstractFilesDecorator

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

public abstract class AbstractFilesDecorator
extends Object
implements Decorator

A pre-implementation to decorate the number of files

Since:
1.10

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

Constructor Detail

AbstractFilesDecorator

public AbstractFilesDecorator(Language language)
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)

Specified by:
shouldExecuteOnProject in interface CheckProject

generateFilesMetric

public Metric generateFilesMetric()
Used to define downstream dependencies


decorate

public void decorate(Resource resource,
                     DecoratorContext context)

Specified by:
decorate in interface Decorator


Copyright © 2009 SonarSource SA. All Rights Reserved.