org.sonar.api.batch.analyzer.issue
Interface AnalyzerIssueBuilder

All Known Implementing Classes:
DefaultAnalyzerIssueBuilder

@Beta
public interface AnalyzerIssueBuilder

Builder for AnalyzerIssue.

Since:
4.4

Method Summary
 AnalyzerIssueBuilder atLine(int line)
          Line of the issue.
 AnalyzerIssue build()
          Build the issue.
 AnalyzerIssueBuilder effortToFix(Double effortToFix)
          Effort to fix the issue.
 AnalyzerIssueBuilder message(String message)
          Message of the issue.
 AnalyzerIssueBuilder onFile(InputFile file)
          The InputFile the issue belongs to.
 AnalyzerIssueBuilder onProject()
          Tell that the issue is global to the project.
 AnalyzerIssueBuilder ruleKey(RuleKey ruleKey)
          The RuleKey of the issue.
 

Method Detail

ruleKey

AnalyzerIssueBuilder ruleKey(RuleKey ruleKey)
The RuleKey of the issue.


onFile

AnalyzerIssueBuilder onFile(InputFile file)
The InputFile the issue belongs to. For global issues call onProject().


onProject

AnalyzerIssueBuilder onProject()
Tell that the issue is global to the project.


atLine

AnalyzerIssueBuilder atLine(int line)
Line of the issue. If no line is specified then issue is supposed to be global to the file.


effortToFix

AnalyzerIssueBuilder effortToFix(@Nullable
                                 Double effortToFix)
Effort to fix the issue.


message

AnalyzerIssueBuilder message(String message)
Message of the issue.


build

AnalyzerIssue build()
Build the issue.



Copyright © 2009-2014 SonarSource. All Rights Reserved.