Class CompoundTextRange


  • public class CompoundTextRange
    extends TextRange
    • Constructor Detail

      • CompoundTextRange

        public CompoundTextRange​(List<TextRange> textRanges)
    • Method Detail

      • computeTextRangeAtIndex

        public TextRange computeTextRangeAtIndex​(int startIndex,
                                                 String token)
        Provide the correct TextRange, which can extend a multiple lines. It combines the startIndex and the token length to find which of the textRanges are covered, to compute the correct single/multi line TextRange.
      • navigateToRangeAtIndex

        public int navigateToRangeAtIndex​(org.sonar.iac.docker.tree.impl.CompoundTextRange.TextRangeIterator iterator,
                                          int index)