@Beta public interface NewHighlighting
Modifier and Type | Method and Description |
---|---|
NewHighlighting |
highlight(int startOffset,
int endOffset,
TypeOfText typeOfText)
Call this method to indicate the type of text in a range.
|
NewHighlighting |
onFile(InputFile inputFile)
The file the highlighting belongs to.
|
void |
save()
Call this method only once when your are done with defining highlighting of the file.
|
NewHighlighting onFile(InputFile inputFile)
NewHighlighting highlight(int startOffset, int endOffset, TypeOfText typeOfText)
startOffset
- Starting position in file for this type of text. Beginning of a file starts with offset '0'.endOffset
- End position in file for this type of text.typeOfText
- see TypeOfText
values.void save()
IllegalStateException
- if you have defined overlapping highlightingCopyright © 2009–2016 SonarSource. All rights reserved.