org.sonar.api.batch.analyzer
Interface Analyzer

All Superinterfaces:
BatchComponent, BatchExtension, Extension

@Beta
public interface Analyzer
extends BatchExtension

An Analyzer is invoked once during the analysis of a project. The analyzer can parse a flat file, connect to a web server... Analyzers are used to add measure and issues at file level.

For example the Cobertura Analyzer parses Cobertura report and saves the first-level of measures on files.

Since:
4.4

Method Summary
 void analyse(AnalyzerContext context)
          The actual analyzer code.
 void describe(AnalyzerDescriptor descriptor)
          Populate AnalyzerDescriptor of this analyzer.
 

Method Detail

describe

void describe(AnalyzerDescriptor descriptor)
Populate AnalyzerDescriptor of this analyzer.


analyse

void analyse(AnalyzerContext context)
The actual analyzer code.



Copyright © 2009-2014 SonarSource. All Rights Reserved.