org.sonar.plugins.javancss
Class CommentRatioJob

java.lang.Object
  extended by org.sonar.plugins.api.jobs.AbstractJob
      extended by org.sonar.plugins.javancss.CommentRatioJob
All Implemented Interfaces:
Extension, Job

public class CommentRatioJob
extends AbstractJob


Constructor Summary
CommentRatioJob()
           
 
Method Summary
 java.util.List<Metric> dependsOnMetrics()
          Depends of another measures on the same scope.
 void execute(Resource resource)
           
 java.util.List<Metric> generatesMetrics()
           
protected  Language shouldExecuteOnLanguage()
           
 boolean shouldExecuteOnResource(Resource node)
           
 
Methods inherited from class org.sonar.plugins.api.jobs.AbstractJob
dependsOnJobs, shouldExecuteOnProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentRatioJob

public CommentRatioJob()
Method Detail

shouldExecuteOnResource

public boolean shouldExecuteOnResource(Resource node)

dependsOnMetrics

public java.util.List<Metric> dependsOnMetrics()
Description copied from interface: Job
Depends of another measures on the same scope.

Specified by:
dependsOnMetrics in interface Job
Overrides:
dependsOnMetrics in class AbstractJob
Returns:
empty list if no dependencies

generatesMetrics

public java.util.List<Metric> generatesMetrics()
Specified by:
generatesMetrics in interface Job
Overrides:
generatesMetrics in class AbstractJob
Returns:
empty list if the job does not calculate measures

execute

public void execute(Resource resource)

shouldExecuteOnLanguage

protected Language shouldExecuteOnLanguage()
Specified by:
shouldExecuteOnLanguage in class AbstractJob
Returns:
null if executes on all languages


Copyright © 2008 SonarSource SA. All Rights Reserved.