org.sonar.api.batch
Class FormulaDecorator

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

public class FormulaDecorator
extends Object
implements Decorator

Since:
1.11

Constructor Summary
FormulaDecorator(Metric metric)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 List<Metric> dependsUponMetrics()
           
 boolean equals(Object o)
           
 Metric generatesMetric()
           
 int hashCode()
           
 boolean shouldExecuteOnProject(Project project)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormulaDecorator

public FormulaDecorator(Metric metric)
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

generatesMetric

public Metric generatesMetric()

dependsUponMetrics

public List<Metric> dependsUponMetrics()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 SonarSource SA. All Rights Reserved.