public static interface MeasureComputer.MeasureComputerContext
Modifier and Type | Method and Description |
---|---|
void |
addMeasure(String metric,
boolean value)
Add a new measure of a given metric which measure type will be boolean
|
void |
addMeasure(String metric,
double value)
Add a new measure of a given metric which measure type will be double
|
void |
addMeasure(String metric,
int value)
Add a new measure of a given metric which measure type will be int
|
void |
addMeasure(String metric,
long value)
Add a new measure of a given metric which measure type will be long
|
void |
addMeasure(String metric,
String value)
Add a new measure of a given metric which measure type will be string
|
Iterable<Measure> |
getChildrenMeasures(String metric)
Returns measures from a given metric on children of the current component.
|
Component |
getComponent()
Returns the current component.
|
List<? extends Issue> |
getIssues()
Return list of all issues (open, closed, etc.) of current component.
|
Measure |
getMeasure(String metric)
Returns the measure from a given metric on the current component.
|
Settings |
getSettings()
Returns settings of the current component.
|
Component getComponent()
Settings getSettings()
@CheckForNull Measure getMeasure(String metric)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getInputMetrics()
Iterable<Measure> getChildrenMeasures(String metric)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getInputMetrics()
or in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
void addMeasure(String metric, int value)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(String metric, double value)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(String metric, long value)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(String metric, String value)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(String metric, boolean value)
IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentCopyright © 2009–2016 SonarSource. All rights reserved.