Class DefaultHighlighting
java.lang.Object
org.sonar.api.batch.sensor.internal.DefaultStorable
org.sonar.api.batch.sensor.highlighting.internal.DefaultHighlighting
- All Implemented Interfaces:
org.sonar.api.batch.sensor.highlighting.NewHighlighting
public class DefaultHighlighting
extends DefaultStorable
implements org.sonar.api.batch.sensor.highlighting.NewHighlighting
-
Field Summary
Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
storage -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHighlighting(org.sonar.api.batch.sensor.internal.SensorStorage storage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSave()highlight(int startLine, int startLineOffset, int endLine, int endLineOffset, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText) highlight(org.sonar.api.batch.fs.TextRange range, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText) org.sonar.api.batch.fs.InputFileonFile(org.sonar.api.batch.fs.InputFile inputFile) Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
save, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.api.batch.sensor.highlighting.NewHighlighting
save
-
Constructor Details
-
DefaultHighlighting
public DefaultHighlighting(org.sonar.api.batch.sensor.internal.SensorStorage storage)
-
-
Method Details
-
getSyntaxHighlightingRuleSet
-
onFile
- Specified by:
onFilein interfaceorg.sonar.api.batch.sensor.highlighting.NewHighlighting
-
inputFile
public org.sonar.api.batch.fs.InputFile inputFile() -
highlight
public DefaultHighlighting highlight(int startLine, int startLineOffset, int endLine, int endLineOffset, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText) - Specified by:
highlightin interfaceorg.sonar.api.batch.sensor.highlighting.NewHighlighting
-
highlight
public DefaultHighlighting highlight(org.sonar.api.batch.fs.TextRange range, org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText) - Specified by:
highlightin interfaceorg.sonar.api.batch.sensor.highlighting.NewHighlighting
-
doSave
protected void doSave()- Specified by:
doSavein classDefaultStorable
-