public final class FormulaDecorator extends Object implements Decorator
Constructor and Description |
---|
FormulaDecorator(Metric metric) |
FormulaDecorator(Metric metric,
Set<Decorator> executeAfterDecorators)
Creates a FormulaDecorator
|
Modifier and Type | Method and Description |
---|---|
void |
decorate(Resource resource,
DecoratorContext context) |
Collection<Decorator> |
dependsUponDecorators() |
List<Metric> |
dependsUponMetrics() |
boolean |
equals(Object o) |
Metric |
generatesMetric() |
int |
hashCode() |
boolean |
shouldExecuteOnProject(Project project) |
String |
toString() |
public FormulaDecorator(Metric metric, Set<Decorator> executeAfterDecorators)
metric
- the metric should have an associated formulaIllegalArgumentException
- if no formula is associated to the metricpublic FormulaDecorator(Metric metric)
public boolean shouldExecuteOnProject(Project project)
shouldExecuteOnProject
in interface CheckProject
public Metric generatesMetric()
public List<Metric> dependsUponMetrics()
public Collection<Decorator> dependsUponDecorators()
public void decorate(Resource resource, DecoratorContext context)
Copyright © 2009-2012 SonarSource. All Rights Reserved.