public class HighlightingData extends Object
| Constructor and Description |
|---|
HighlightingData(int startLine,
int startColumnIndex,
int endLine,
int endColumnIndex,
org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndColumnIndex()
Returns the column number where the highlighted portion of code ends
|
int |
getEndLine()
Returns the line number where the highlighted portion of code ends
|
int |
getStartColumnIndex()
Returns the column number where the highlighted portion of code starts
|
int |
getStartLine()
Returns the line number where the highlighted portion of code starts
|
org.sonar.api.batch.sensor.highlighting.TypeOfText |
getTypeOfText()
Returns the type of text
|
void |
highlight(org.sonar.api.batch.sensor.highlighting.NewHighlighting highlighting)
Highlights the portion of code in SonarQube as described by this class
|
public HighlightingData(int startLine,
int startColumnIndex,
int endLine,
int endColumnIndex,
org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)
startLine - the line number where the highlighted portion of code startsstartColumnIndex - the column number where the highlighted portion of code startsendLine - the line number where the highlighted portion of code endsendColumnIndex - the column number where the highlighted portion of code ends (this column is not part of
the highlighting)typeOfText - the type of text. Depending on this parameter, the highlighting in SonarQube will be different.public void highlight(org.sonar.api.batch.sensor.highlighting.NewHighlighting highlighting)
highlighting - SonarQube's highlighting for this portion of codepublic int getStartLine()
public int getStartColumnIndex()
public int getEndLine()
public int getEndColumnIndex()
public org.sonar.api.batch.sensor.highlighting.TypeOfText getTypeOfText()
Copyright © 2018–2019. All rights reserved.