|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.sensor.internal.DefaultSensorDescriptor
public class DefaultSensorDescriptor
Constructor Summary | |
---|---|
DefaultSensorDescriptor()
|
Method Summary | |
---|---|
DefaultSensorDescriptor |
createIssuesForRuleRepositories(String... repositoryKeys)
List InputFile.Type this Sensor work on. |
Metric[] |
dependsOn()
|
DefaultSensorDescriptor |
dependsOn(Metric<?>... metrics)
List Metric this Sensor depends on. |
Collection<String> |
languages()
|
String |
name()
|
DefaultSensorDescriptor |
name(String name)
Name of the Sensor . |
Metric[] |
provides()
|
DefaultSensorDescriptor |
provides(Metric<?>... metrics)
List Metric this Sensor provides. |
Collection<String> |
ruleRepositories()
|
Collection<InputFile.Type> |
types()
|
DefaultSensorDescriptor |
workOnFileTypes(InputFile.Type... types)
List InputFile.Type this Sensor work on. |
DefaultSensorDescriptor |
workOnLanguages(String... languageKeys)
List languages this Sensor work on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSensorDescriptor()
Method Detail |
---|
public String name()
public Metric[] dependsOn()
public Metric[] provides()
public Collection<String> languages()
public Collection<InputFile.Type> types()
public Collection<String> ruleRepositories()
public DefaultSensorDescriptor name(String name)
SensorDescriptor
Sensor
. Will be displayed in logs.
name
in interface SensorDescriptor
public DefaultSensorDescriptor dependsOn(Metric<?>... metrics)
SensorDescriptor
Metric
this Sensor
depends on. Will be used to execute sensors in correct order.
dependsOn
in interface SensorDescriptor
public DefaultSensorDescriptor provides(Metric<?>... metrics)
SensorDescriptor
Metric
this Sensor
provides. Will be used to execute sensors in correct order.
provides
in interface SensorDescriptor
public DefaultSensorDescriptor workOnLanguages(String... languageKeys)
SensorDescriptor
Sensor
work on. May be used by the platform to skip execution of the Sensor
when
no file for given languages are present in the project.
If no language is provided then it will be executed for all languages.
workOnLanguages
in interface SensorDescriptor
public DefaultSensorDescriptor workOnFileTypes(InputFile.Type... types)
SensorDescriptor
InputFile.Type
this Sensor
work on. May be used by the platform to skip execution of the Sensor
when
no file for given type are present in the project.
If you don't call this method then it means sensor is working on all input file types.
workOnFileTypes
in interface SensorDescriptor
public DefaultSensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys)
SensorDescriptor
InputFile.Type
this Sensor
work on. May be used by the platform to skip execution of the Sensor
when
no file for given type are present in the project.
If not type is provided then it will be executed for all types.
createIssuesForRuleRepositories
in interface SensorDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |