Interface Range

All Known Implementing Classes:
InternalRange

public interface Range
  • Method Details

    • start

      Position start()
      Returns:
      the inclusive start position of the range. The character at this location is part of the range.
    • end

      Position end()
      Returns:
      the exclusive end position of the range. The character at this location is not part of the range.
    • at

      static Range at(Position start, Position end)
      Parameters:
      start - is inclusive.
      end - is exclusive, the character at the "end" location is not part of the range.
    • at

      static Range at(int startLine, int startColumn, int endLine, int endColumn)
      Parameters:
      startLine - , starting at 1, the line number of the first character of the range.
      startColumn - starting at 1, the character at this location is part of the range.
      endLine - , starting at 1, exclusive, the line number of the last character, the last character is not part of the range.
      endColumn - starting at 1, exclusive, the column number of the last character, the last character is not part of the range.
    • at

      static Range at(Position start, int length)
      Parameters:
      start - is inclusive.
      length - is used to compute the end of the range
    • at

      static Range at(Position start, String text)
      Parameters:
      start - is inclusive.
      text - to split into lines to compute the end of the range