org.sonar.api.batch.analyzer.internal
Class DefaultAnalyzerDescriptor

java.lang.Object
  extended by org.sonar.api.batch.analyzer.internal.DefaultAnalyzerDescriptor
All Implemented Interfaces:
AnalyzerDescriptor

public class DefaultAnalyzerDescriptor
extends Object
implements AnalyzerDescriptor


Constructor Summary
DefaultAnalyzerDescriptor()
           
 
Method Summary
 DefaultAnalyzerDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
          List InputFile.Type this Analyzer work on.
 Metric[] dependsOn()
           
 DefaultAnalyzerDescriptor dependsOn(Metric<?>... metrics)
          List Metric this Analyzer depends on.
 Collection<String> languages()
           
 String name()
           
 DefaultAnalyzerDescriptor name(String name)
          Name of the Analyzer.
 Metric[] provides()
           
 DefaultAnalyzerDescriptor provides(Metric<?>... metrics)
          List Metric this Analyzer provides.
 Collection<String> ruleRepositories()
           
 Collection<InputFile.Type> types()
           
 DefaultAnalyzerDescriptor workOnFileTypes(InputFile.Type... types)
          List InputFile.Type this Analyzer work on.
 DefaultAnalyzerDescriptor workOnLanguages(String... languageKeys)
          List languages this Analyzer work on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnalyzerDescriptor

public DefaultAnalyzerDescriptor()
Method Detail

name

public String name()

dependsOn

public Metric[] dependsOn()

provides

public Metric[] provides()

languages

public Collection<String> languages()

types

public Collection<InputFile.Type> types()

ruleRepositories

public Collection<String> ruleRepositories()

name

public DefaultAnalyzerDescriptor name(String name)
Description copied from interface: AnalyzerDescriptor
Name of the Analyzer. Will be displayed in logs.

Specified by:
name in interface AnalyzerDescriptor

dependsOn

public DefaultAnalyzerDescriptor dependsOn(Metric<?>... metrics)
Description copied from interface: AnalyzerDescriptor
List Metric this Analyzer depends on. Will be used to execute Analyzers in correct order.

Specified by:
dependsOn in interface AnalyzerDescriptor

provides

public DefaultAnalyzerDescriptor provides(Metric<?>... metrics)
Description copied from interface: AnalyzerDescriptor
List Metric this Analyzer provides. Will be used to execute Analyzers in correct order.

Specified by:
provides in interface AnalyzerDescriptor

workOnLanguages

public DefaultAnalyzerDescriptor workOnLanguages(String... languageKeys)
Description copied from interface: AnalyzerDescriptor
List languages this Analyzer work on. May be used by the platform to skip execution of the Analyzer when no file for given languages are present in the project. If no language is provided then it will be executed for all languages.

Specified by:
workOnLanguages in interface AnalyzerDescriptor

workOnFileTypes

public DefaultAnalyzerDescriptor workOnFileTypes(InputFile.Type... types)
Description copied from interface: AnalyzerDescriptor
List InputFile.Type this Analyzer work on. May be used by the platform to skip execution of the Analyzer when no file for given type are present in the project. If not type is provided then it will be executed for all types.

Specified by:
workOnFileTypes in interface AnalyzerDescriptor

createIssuesForRuleRepositories

public DefaultAnalyzerDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
Description copied from interface: AnalyzerDescriptor
List InputFile.Type this Analyzer work on. May be used by the platform to skip execution of the Analyzer when no file for given type are present in the project. If not type is provided then it will be executed for all types.

Specified by:
createIssuesForRuleRepositories in interface AnalyzerDescriptor


Copyright © 2009-2014 SonarSource. All Rights Reserved.