public static interface MeasureComputer.MeasureComputerContext
Modifier and Type | Method and Description |
---|---|
void |
addMeasure(java.lang.String metric,
boolean value)
Add a new measure of a given metric which measure type will be boolean
|
void |
addMeasure(java.lang.String metric,
double value)
Add a new measure of a given metric which measure type will be double
|
void |
addMeasure(java.lang.String metric,
int value)
Add a new measure of a given metric which measure type will be int
|
void |
addMeasure(java.lang.String metric,
long value)
Add a new measure of a given metric which measure type will be long
|
void |
addMeasure(java.lang.String metric,
java.lang.String value)
Add a new measure of a given metric which measure type will be string
|
java.lang.Iterable<Measure> |
getChildrenMeasures(java.lang.String metric)
Returns measures from a given metric on children of the current component.
|
Component |
getComponent()
Returns the current component.
|
java.util.List<? extends Issue> |
getIssues()
Return list of all issues (open, closed, etc.) of current component.
|
Measure |
getMeasure(java.lang.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(java.lang.String metric)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getInputMetrics()
java.lang.Iterable<Measure> getChildrenMeasures(java.lang.String metric)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getInputMetrics()
or in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
void addMeasure(java.lang.String metric, int value)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
java.lang.UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(java.lang.String metric, double value)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
java.lang.UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(java.lang.String metric, long value)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
java.lang.UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(java.lang.String metric, java.lang.String value)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
java.lang.UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentvoid addMeasure(java.lang.String metric, boolean value)
java.lang.IllegalArgumentException
- if the metric is not listed in MeasureComputer.MeasureComputerDefinition.getOutputMetrics()
java.lang.UnsupportedOperationException
- if a measure for the specified metric already exists for the current componentjava.util.List<? extends Issue> getIssues()