Uses of Class
org.sonar.api.measures.Metric

Packages that use Metric
org.sonar.api.batch   
org.sonar.api.database.daos   
org.sonar.api.database.model   
org.sonar.api.measures   
org.sonar.api.profiles   
 

Uses of Metric in org.sonar.api.batch
 

Methods in org.sonar.api.batch that return Metric
 Metric AbstractFunctionComplexityDecorator.generateFileComplexityMetric()
          Deprecated. Used to define downstream dependencies
 Metric AbstractFileComplexityDecorator.generateFileComplexityMetric()
          Deprecated. Used to define downstream dependencies
 Metric AbstractDivisionDecorator.generatesMetric()
          Used to define downstream dependencies
 Metric AbstractFunctionComplexityDistributionDecorator.generatesMetrics()
          Deprecated.  
protected abstract  Metric AbstractDivisionDecorator.getDividendMetric()
           
protected abstract  Metric AbstractDivisionDecorator.getDivisorMetric()
           
protected abstract  Metric AbstractDivisionDecorator.getQuotientMetric()
           
 Metric DefaultFormulaContext.getTargetMetric()
           
 

Methods in org.sonar.api.batch that return types with arguments of type Metric
 List<Metric> AbstractFunctionComplexityDecorator.dependsUponFileAndComplexityMetrics()
          Deprecated. Used to define upstream dependencies
 List<Metric> AbstractFileComplexityDecorator.dependsUponFileAndComplexityMetrics()
          Deprecated. Used to define upstream dependencies
 List<Metric> AbstractDivisionDecorator.dependsUponMetrics()
          Used to define upstream dependencies
abstract  List<Metric> AbstractSumChildrenDecorator.generatesMetrics()
          Each metric is used individually.
 List<Metric> TimeMachineQuery.getMetrics()
           
 

Methods in org.sonar.api.batch with parameters of type Metric
 Collection<Measure> DefaultFormulaData.getChildrenMeasures(Metric metric)
           
 Collection<Measure> DecoratorContext.getChildrenMeasures(Metric metric)
           
 Measure SensorContext.getMeasure(Metric metric)
          Find a project measure
 Measure DefaultFormulaData.getMeasure(Metric metric)
           
 Measure DecoratorContext.getMeasure(Metric metric)
          Find a measure for the resource
abstract  Measure SonarIndex.getMeasure(Resource resource, Metric metric)
           
 Measure SensorContext.getMeasure(Resource resource, Metric metric)
          Find a measure for this project
 Measure SensorContext.saveMeasure(Metric metric, Double value)
          Add a measure on project
 DecoratorContext DecoratorContext.saveMeasure(Metric metric, Double value)
          Add a measure on the current resource.
 Measure SensorContext.saveMeasure(Resource resource, Metric metric, Double value)
          Add or update a measure.
 void DefaultFormulaContext.setMetric(Metric metric)
           
 TimeMachineQuery TimeMachineQuery.setMetrics(Metric... metrics)
          Sets the metrics to return
 

Method parameters in org.sonar.api.batch with type arguments of type Metric
 TimeMachineQuery TimeMachineQuery.setMetrics(List<Metric> metrics)
          Sets the metrics to return
 

Constructors in org.sonar.api.batch with parameters of type Metric
DefaultFormulaContext(Metric metric)
           
 

Uses of Metric in org.sonar.api.database.daos
 

Methods in org.sonar.api.database.daos that return Metric
 Metric MeasuresDao.getMetric(Metric metric)
          Deprecated.  
 Metric MeasuresDao.getMetric(String metricName)
          Deprecated.  
 

Methods in org.sonar.api.database.daos that return types with arguments of type Metric
 Collection<Metric> MeasuresDao.getEnabledMetrics()
          Deprecated.  
 Collection<Metric> MeasuresDao.getMetrics()
          Deprecated.  
 List<Metric> MeasuresDao.getMetrics(List<Metric> metrics)
          Deprecated.  
 Collection<Metric> MeasuresDao.getUserDefinedMetrics()
          Deprecated.  
 

Methods in org.sonar.api.database.daos with parameters of type Metric
 Metric MeasuresDao.getMetric(Metric metric)
          Deprecated.  
 void MeasuresDao.persistMetric(Metric metric)
          Deprecated.  
 

Method parameters in org.sonar.api.database.daos with type arguments of type Metric
 void MeasuresDao.disabledMetrics(Collection<Metric> metrics)
          Deprecated.  
 List<Metric> MeasuresDao.getMetrics(List<Metric> metrics)
          Deprecated.  
 void MeasuresDao.registerMetrics(Collection<Metric> metrics)
          Deprecated.  
 

Uses of Metric in org.sonar.api.database.model
 

Methods in org.sonar.api.database.model with parameters of type Metric
 String MeasureModel.getData(Metric metric)
           
 

Uses of Metric in org.sonar.api.measures
 

Fields in org.sonar.api.measures declared as Metric
static Metric CoreMetrics.ABSTRACTNESS
           
static Metric CoreMetrics.ACCESSORS
           
static Metric CoreMetrics.AFFERENT_COUPLINGS
           
static Metric CoreMetrics.ALERT_STATUS
           
static Metric CoreMetrics.BLOCKER_VIOLATIONS
           
static Metric CoreMetrics.BRANCH_COVERAGE
           
static Metric CoreMetrics.BRANCH_COVERAGE_HITS_DATA
          Deprecated. since 2.7 replaced by metrics CONDITIONS_BY_LINE and COVERED_CONDITIONS_BY_LINE
static Metric CoreMetrics.CLASS_COMPLEXITY
           
static Metric CoreMetrics.CLASS_COMPLEXITY_DISTRIBUTION
           
static Metric CoreMetrics.CLASSES
           
static Metric CoreMetrics.COMMENT_BLANK_LINES
           
static Metric CoreMetrics.COMMENT_LINES
           
static Metric CoreMetrics.COMMENT_LINES_DENSITY
           
static Metric CoreMetrics.COMMENTED_OUT_CODE_LINES
           
static Metric CoreMetrics.COMPLEXITY
           
static Metric CoreMetrics.CONDITIONS_BY_LINE
           
static Metric CoreMetrics.CONDITIONS_TO_COVER
           
static Metric CoreMetrics.COVERAGE
           
static Metric CoreMetrics.COVERAGE_LINE_HITS_DATA
           
static Metric CoreMetrics.COVERED_CONDITIONS_BY_LINE
           
static Metric CoreMetrics.CRITICAL_VIOLATIONS
           
static Metric CoreMetrics.DEPENDENCY_MATRIX
           
static Metric CoreMetrics.DEPTH_IN_TREE
           
static Metric CoreMetrics.DIRECTORIES
           
static Metric CoreMetrics.DISTANCE
           
static Metric CoreMetrics.DUPLICATED_BLOCKS
           
static Metric CoreMetrics.DUPLICATED_FILES
           
static Metric CoreMetrics.DUPLICATED_LINES
           
static Metric CoreMetrics.DUPLICATED_LINES_DENSITY
           
static Metric CoreMetrics.DUPLICATIONS_DATA
           
static Metric CoreMetrics.EFFERENT_COUPLINGS
           
static Metric CoreMetrics.EFFICIENCY
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static Metric CoreMetrics.FILE_COMPLEXITY
           
static Metric CoreMetrics.FILE_COMPLEXITY_DISTRIBUTION
           
static Metric CoreMetrics.FILE_CYCLES
           
static Metric CoreMetrics.FILE_EDGES_WEIGHT
           
static Metric CoreMetrics.FILE_FEEDBACK_EDGES
           
static Metric CoreMetrics.FILE_TANGLE_INDEX
           
static Metric CoreMetrics.FILE_TANGLES
           
static Metric CoreMetrics.FILES
           
static Metric CoreMetrics.FUNCTION_COMPLEXITY
           
static Metric CoreMetrics.FUNCTION_COMPLEXITY_DISTRIBUTION
           
static Metric CoreMetrics.FUNCTIONS
           
static Metric CoreMetrics.GENERATED_LINES
           
static Metric CoreMetrics.GENERATED_NCLOC
           
static Metric CoreMetrics.INFO_VIOLATIONS
           
static Metric CoreMetrics.INSTABILITY
           
static Metric CoreMetrics.LCOM4
           
static Metric CoreMetrics.LCOM4_BLOCKS
           
static Metric CoreMetrics.LCOM4_DISTRIBUTION
           
static Metric CoreMetrics.LINE_COVERAGE
           
static Metric CoreMetrics.LINES
           
static Metric CoreMetrics.LINES_TO_COVER
           
static Metric CoreMetrics.MAINTAINABILITY
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static Metric CoreMetrics.MAJOR_VIOLATIONS
           
protected  Metric Measure.metric
           
static Metric CoreMetrics.MINOR_VIOLATIONS
           
static Metric CoreMetrics.NCLOC
           
static Metric CoreMetrics.NEW_BLOCKER_VIOLATIONS
           
static Metric CoreMetrics.NEW_BRANCH_COVERAGE
           
static Metric CoreMetrics.NEW_CONDITIONS_TO_COVER
           
static Metric CoreMetrics.NEW_COVERAGE
           
static Metric CoreMetrics.NEW_CRITICAL_VIOLATIONS
           
static Metric CoreMetrics.NEW_INFO_VIOLATIONS
           
static Metric CoreMetrics.NEW_LINE_COVERAGE
           
static Metric CoreMetrics.NEW_LINES_TO_COVER
           
static Metric CoreMetrics.NEW_MAJOR_VIOLATIONS
           
static Metric CoreMetrics.NEW_MINOR_VIOLATIONS
           
static Metric CoreMetrics.NEW_UNCOVERED_CONDITIONS
           
static Metric CoreMetrics.NEW_UNCOVERED_LINES
           
static Metric CoreMetrics.NEW_VIOLATIONS
           
static Metric CoreMetrics.NUMBER_OF_CHILDREN
           
static Metric CoreMetrics.PACKAGE_CYCLES
           
static Metric CoreMetrics.PACKAGE_EDGES_WEIGHT
           
static Metric CoreMetrics.PACKAGE_FEEDBACK_EDGES
           
static Metric CoreMetrics.PACKAGE_TANGLE_INDEX
           
static Metric CoreMetrics.PACKAGE_TANGLES
           
static Metric CoreMetrics.PACKAGES
           
static Metric CoreMetrics.PARAGRAPH_COMPLEXITY
           
static Metric CoreMetrics.PARAGRAPH_COMPLEXITY_DISTRIBUTION
           
static Metric CoreMetrics.PARAGRAPHS
           
static Metric CoreMetrics.PORTABILITY
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static Metric CoreMetrics.PROFILE
           
static Metric CoreMetrics.PUBLIC_API
           
static Metric CoreMetrics.PUBLIC_DOCUMENTED_API_DENSITY
           
static Metric CoreMetrics.PUBLIC_UNDOCUMENTED_API
           
static Metric CoreMetrics.RELIABILITY
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static Metric CoreMetrics.RFC
           
static Metric CoreMetrics.RFC_DISTRIBUTION
           
static Metric CoreMetrics.SCM_AUTHORS_BY_LINE
           
static Metric CoreMetrics.SCM_COMMITS
           
static Metric CoreMetrics.SCM_LAST_COMMIT_DATE
           
static Metric CoreMetrics.SCM_LAST_COMMIT_DATETIMES_BY_LINE
           
static Metric CoreMetrics.SCM_REVISION
           
static Metric CoreMetrics.SCM_REVISIONS_BY_LINE
           
static Metric CoreMetrics.SKIPPED_TESTS
           
static Metric CoreMetrics.STATEMENTS
           
static Metric CoreMetrics.SUSPECT_LCOM4_DENSITY
           
static Metric CoreMetrics.TEST_DATA
           
static Metric CoreMetrics.TEST_ERRORS
           
static Metric CoreMetrics.TEST_EXECUTION_TIME
           
static Metric CoreMetrics.TEST_FAILURES
           
static Metric CoreMetrics.TEST_SUCCESS_DENSITY
           
static Metric CoreMetrics.TESTS
           
static Metric CoreMetrics.UNCOVERED_CONDITIONS
           
static Metric CoreMetrics.UNCOVERED_LINES
           
static Metric CoreMetrics.USABILITY
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static Metric CoreMetrics.VIOLATIONS
           
static Metric CoreMetrics.VIOLATIONS_DENSITY
           
static Metric CoreMetrics.WEIGHTED_VIOLATIONS
           
 

Fields in org.sonar.api.measures with type parameters of type Metric
static List<Metric> CoreMetrics.metrics
           
static List<Metric> CoverageMeasuresBuilder.METRICS
          Metrics of generated measures
 

Methods in org.sonar.api.measures that return Metric
 Metric Metric.Builder.create()
           
 Metric MetricFinder.findById(int id)
           
 Metric MetricFinder.findByKey(String key)
           
 Metric PropertiesBuilder.getMetric()
           
 Metric Measure.getMetric()
           
 Metric FormulaContext.getTargetMetric()
           
 Metric Metric.merge(Metric with)
          Merge with fields from other metric.
 Metric Metric.setBestValue(Double bestValue)
           
 Metric Metric.setDescription(String description)
          Sets the metric description
 Metric Metric.setDirection(Integer direction)
          Sets the metric direction.
 Metric Metric.setDomain(String domain)
          Sets the domain for the metric (General, Complexity...)
 Metric Metric.setEnabled(Boolean enabled)
          Sets whether the metric is enabled
 Metric Metric.setFormula(Formula formula)
          Sets the metric formula
 Metric Metric.setHidden(Boolean hidden)
           
 Metric Metric.setId(Integer id)
          For internal use only
 Metric Metric.setKey(String key)
          Sets the metric key
 Metric Metric.setName(String name)
          Sets the metric name
 Metric Metric.setOptimizedBestValue(Boolean b)
           
 Metric Metric.setOrigin(Metric.Origin origin)
          Set the origin of the metric - Internal use only
 Metric Metric.setQualitative(Boolean qualitative)
          Sets whether the metric is qualitative
 Metric Metric.setType(Metric.ValueType type)
          Sets the metric type
 Metric Metric.setUserManaged(Boolean userManaged)
          Sets whether the metric is user managed
 Metric Metric.setWorstValue(Double d)
           
 

Methods in org.sonar.api.measures that return types with arguments of type Metric
 List<Metric> WeightedMeanAggregationFormula.dependsUponMetrics()
           
 List<Metric> SumChildValuesFormula.dependsUponMetrics()
           
 List<Metric> SumChildDistributionFormula.dependsUponMetrics()
           
 List<Metric> MeanAggregationFormula.dependsUponMetrics()
           
 List<Metric> Formula.dependsUponMetrics()
           
 List<Metric> AverageComplexityFormula.dependsUponMetrics()
           
 Collection<Metric> MetricFinder.findAll()
           
 Collection<Metric> MetricFinder.findAll(List<String> metricKeys)
           
 List<Metric> Metrics.getMetrics()
           
static List<Metric> CoreMetrics.getMetrics()
           
 

Methods in org.sonar.api.measures with parameters of type Metric
static MeasuresFilter<Measure> MeasuresFilters.characteristic(Metric metric, Characteristic characteristic)
           
static RuleMeasure RuleMeasure.createForCategory(Metric metric, Integer category, Double value)
          Deprecated. since 2.5 See http://jira.codehaus.org/browse/SONAR-2007
static RuleMeasure RuleMeasure.createForPriority(Metric metric, RulePriority priority, Double value)
           
static RuleMeasure RuleMeasure.createForRule(Metric metric, Rule rule, Double value)
           
 Collection<Measure> FormulaData.getChildrenMeasures(Metric metric)
           
 Measure FormulaData.getMeasure(Metric metric)
           
 Metric Metric.merge(Metric with)
          Merge with fields from other metric.
static MeasuresFilter<Measure> MeasuresFilters.metric(Metric metric)
           
static MeasuresFilter<RuleMeasure> MeasuresFilters.rule(Metric metric, Rule rule)
           
static MeasuresFilter<Collection<RuleMeasure>> MeasuresFilters.ruleCategories(Metric metric)
          Deprecated. since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
static MeasuresFilter<RuleMeasure> MeasuresFilters.ruleCategory(Metric metric, Integer category)
          Deprecated. since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
static MeasuresFilter<RuleMeasure> MeasuresFilters.rulePriority(Metric metric, RulePriority priority)
           
static MeasuresFilter<Collection<RuleMeasure>> MeasuresFilters.rules(Metric metric)
           
 PropertiesBuilder<KEY,VALUE> PropertiesBuilder.setMetric(Metric metric)
           
 Measure Measure.setMetric(Metric metric)
          Set the underlying metric
 

Constructors in org.sonar.api.measures with parameters of type Metric
AverageComplexityFormula(Metric byMetric)
           
CountDistributionBuilder(Metric metric)
          Creates an empty CountDistributionBuilder for a specified metric
Measure(Metric metric)
          Creates a measure with a metric
Measure(Metric metric, Double value)
          Creates a measure with a metric and a value
Measure(Metric metric, Double value, int precision)
          Creates a measure with a metric, a value and a precision for the value
Measure(Metric metric, Double value, String data)
          Creates a measure with a metric, a value and a data field
Measure(Metric metric, Metric.Level level)
          Creates a measure with a metric and an alert level
Measure(Metric metric, String data)
          * Creates a measure with a metric and a data field
MeasuresFilters.MetricFilter(Metric metric)
           
PropertiesBuilder(Metric metric)
           
PropertiesBuilder(Metric metric, Map<KEY,VALUE> map)
           
RangeDistributionBuilder(Metric metric)
           
RangeDistributionBuilder(Metric metric, Number[] bottomLimits)
          RangeDistributionBuilder for a metric and a defined range Each entry is initialized at zero
RuleMeasure(Metric metric, Rule rule, RulePriority rulePriority, Integer ruleCategory)
          This constructor is for internal use only.
WeightedMeanAggregationFormula(Metric weightingMetric, boolean zeroIfNoValues)
           
 

Uses of Metric in org.sonar.api.profiles
 

Methods in org.sonar.api.profiles that return Metric
 Metric Alert.getMetric()
           
 

Methods in org.sonar.api.profiles with parameters of type Metric
 void Alert.setMetric(Metric metric)
          Sets the alert metric
 

Constructors in org.sonar.api.profiles with parameters of type Metric
Alert(RulesProfile rulesProfile, Metric metric, String operator, String valueError, String valueWarning)
          Creates an alert
 



Copyright © 2009-2011 SonarSource. All Rights Reserved.