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)
NewIssueLocation
InputComponent
the issue location belongs to. Mandatory.on
in interface NewIssueLocation
public DefaultIssueLocation at(TextRange location)
NewIssueLocation
NewIssueLocation.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 NewIssueLocation
public DefaultIssueLocation message(String message)
NewIssueLocation
NewIssueLocation.MESSAGE_MAX_SIZE
characters.message
in interface NewIssueLocation
public InputComponent inputComponent()
IssueLocation
InputComponent
this location belongs to.inputComponent
in interface IssueLocation
public TextRange textRange()
IssueLocation
textRange
in interface IssueLocation
public String message()
IssueLocation
message
in interface IssueLocation
Copyright © 2009–2017 SonarSource. All rights reserved.