public class DefaultIssueLocation extends Object implements NewIssueLocation, IssueLocation
MESSAGE_MAX_SIZE| Constructor and Description |
|---|
DefaultIssueLocation() |
| Modifier and Type | Method and Description |
|---|---|
DefaultIssueLocation |
at(TextRange location)
Position in the file.
|
InputComponent |
inputComponent()
The
InputComponent this location belongs to. |
String |
message()
Message of the issue.
|
DefaultIssueLocation |
message(String message)
Optional, but recommended, plain-text message for this location.
|
DefaultIssueLocation |
on(InputComponent component)
The
InputComponent the issue location belongs to. |
TextRange |
textRange()
Range of the issue.
|
public DefaultIssueLocation()
public DefaultIssueLocation on(InputComponent component)
NewIssueLocationInputComponent the issue location belongs to. Mandatory.on in interface NewIssueLocationpublic DefaultIssueLocation at(TextRange location)
NewIssueLocationNewIssueLocation.on(InputComponent) has been called with an InputFile.
See InputFile.newRange(org.sonar.api.batch.fs.TextPointer, org.sonar.api.batch.fs.TextPointer)at in interface NewIssueLocationpublic DefaultIssueLocation message(String message)
NewIssueLocationNewIssueLocation.MESSAGE_MAX_SIZE characters.message in interface NewIssueLocationpublic InputComponent inputComponent()
IssueLocationInputComponent this location belongs to.inputComponent in interface IssueLocationpublic TextRange textRange()
IssueLocationtextRange in interface IssueLocationpublic String message()
IssueLocationmessage in interface IssueLocationCopyright © 2009–2017 SonarSource. All rights reserved.