Package org.sonar.java
Class AnalyzerMessage
- java.lang.Object
-
- org.sonar.java.AnalyzerMessage
-
public class AnalyzerMessage extends Object
Class used to represent analyzer issue messages
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzerMessage.TextSpan
-
Field Summary
Fields Modifier and Type Field Description List<List<AnalyzerMessage>>flows
-
Constructor Summary
Constructors Constructor Description AnalyzerMessage(JavaCheck check, File file, int line, String message, int cost)AnalyzerMessage(JavaCheck check, File file, AnalyzerMessage.TextSpan textSpan, String message, int cost)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaCheckgetCheck()DoublegetCost()FilegetFile()IntegergetLine()StringgetMessage()AnalyzerMessage.TextSpanprimaryLocation()static AnalyzerMessage.TextSpantextSpanBetween(Tree startTree, Tree endTree)static AnalyzerMessage.TextSpantextSpanFor(Tree syntaxNode)StringtoString()
-
-
-
Field Detail
-
flows
public final List<List<AnalyzerMessage>> flows
-
-
Method Detail
-
getCheck
public JavaCheck getCheck()
-
getFile
public File getFile()
-
primaryLocation
@Nullable public AnalyzerMessage.TextSpan primaryLocation()
- Returns:
- null, when target of a message - is a file
-
getMessage
public String getMessage()
-
textSpanFor
public static AnalyzerMessage.TextSpan textSpanFor(Tree syntaxNode)
-
textSpanBetween
public static AnalyzerMessage.TextSpan textSpanBetween(Tree startTree, Tree endTree)
-
-