@Beta public interface HighlightingBuilder
Modifier and Type | Method and Description |
---|---|
void |
done()
Call this method only once when your are done with defining highlighting of the file.
|
HighlightingBuilder |
highlight(int startOffset,
int endOffset,
TypeOfText typeOfText)
Call this method to indicate the type of text in a range.
|
HighlightingBuilder 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 done()
IllegalStateException
- if you have defined overlapping highlightingCopyright © 2009–2015 SonarSource. All rights reserved.