org.sonar.api.batch
Class AbstractSumChildrenDecorator
java.lang.Object
org.sonar.api.batch.AbstractSumChildrenDecorator
- All Implemented Interfaces:
- CheckProject, Decorator, BatchExtension, Extension
public abstract class AbstractSumChildrenDecorator
- extends java.lang.Object
- implements Decorator
Sum measures of child resources.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractSumChildrenDecorator
public AbstractSumChildrenDecorator()
generatesMetrics
public abstract java.util.List<Metric> generatesMetrics()
- Each metric is used individually. There are as many generated measures than metrics.
Important : annotations are not inherited, so you have to copy the @Generates annotation
when implementing this method.
- Returns:
- not null list of metrics
shouldExecuteOnProject
public boolean shouldExecuteOnProject(Project project)
- Specified by:
shouldExecuteOnProject
in interface CheckProject
shouldSaveZeroIfNoChildMeasures
protected abstract boolean shouldSaveZeroIfNoChildMeasures()
decorate
public void decorate(Resource resource,
DecoratorContext context)
- Specified by:
decorate
in interface Decorator
shouldDecorateResource
public boolean shouldDecorateResource(Resource resource)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009 SonarSource SA. All Rights Reserved.