Class DefaultHighlighting

  • All Implemented Interfaces:
    org.sonar.api.batch.sensor.highlighting.NewHighlighting

    public class DefaultHighlighting
    extends DefaultStorable
    implements org.sonar.api.batch.sensor.highlighting.NewHighlighting
    • Constructor Detail

      • DefaultHighlighting

        public DefaultHighlighting​(org.sonar.api.batch.sensor.internal.SensorStorage storage)
    • Method Detail

      • onFile

        public DefaultHighlighting onFile​(org.sonar.api.batch.fs.InputFile inputFile)
        Specified by:
        onFile in interface org.sonar.api.batch.sensor.highlighting.NewHighlighting
      • inputFile

        public org.sonar.api.batch.fs.InputFile inputFile()
      • highlight

        public DefaultHighlighting highlight​(int startOffset,
                                             int endOffset,
                                             org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)
        Specified by:
        highlight in interface org.sonar.api.batch.sensor.highlighting.NewHighlighting
      • highlight

        public DefaultHighlighting highlight​(int startLine,
                                             int startLineOffset,
                                             int endLine,
                                             int endLineOffset,
                                             org.sonar.api.batch.sensor.highlighting.TypeOfText typeOfText)
        Specified by:
        highlight in interface org.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:
        highlight in interface org.sonar.api.batch.sensor.highlighting.NewHighlighting