Package | Description |
---|---|
org.sonar.api.batch.sensor.highlighting | |
org.sonar.api.batch.sensor.highlighting.internal | |
org.sonar.api.batch.sensor.internal |
Modifier and Type | Method and Description |
---|---|
static TypeOfText |
TypeOfText.forCssClass(String cssClass) |
static TypeOfText |
TypeOfText.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeOfText[] |
TypeOfText.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
NewHighlighting |
NewHighlighting.highlight(int startLine,
int startLineOffset,
int endLine,
int endLineOffset,
TypeOfText typeOfText)
Shortcut to avoid calling
InputFile.newRange(int, int, int, int) |
NewHighlighting |
NewHighlighting.highlight(int startOffset,
int endOffset,
TypeOfText typeOfText)
Deprecated.
since 5.6 Only supported to ease migration from old API. Please prefer other
highlight() methods. |
NewHighlighting |
NewHighlighting.highlight(TextRange range,
TypeOfText typeOfText)
Call this method to indicate the type of text in a range.
|
Modifier and Type | Method and Description |
---|---|
TypeOfText |
SyntaxHighlightingRule.getTextType() |
Modifier and Type | Method and Description |
---|---|
static SyntaxHighlightingRule |
SyntaxHighlightingRule.create(TextRange range,
TypeOfText textType) |
DefaultHighlighting |
DefaultHighlighting.highlight(int startLine,
int startLineOffset,
int endLine,
int endLineOffset,
TypeOfText typeOfText) |
DefaultHighlighting |
DefaultHighlighting.highlight(int startOffset,
int endOffset,
TypeOfText typeOfText) |
DefaultHighlighting |
DefaultHighlighting.highlight(TextRange range,
TypeOfText typeOfText) |
Modifier and Type | Method and Description |
---|---|
List<TypeOfText> |
SensorContextTester.highlightingTypeAt(String componentKey,
int line,
int lineOffset)
Return list of syntax highlighting applied for a given position in a file.
|
Copyright © 2009–2018 SonarSource. All rights reserved.