Class UnderlinedRange

    • Field Detail

      • line

        public final int line
        start at 1, line number of the first character of the token
      • column

        public final int column
        start at 1, column number of the first character of the token
      • endLine

        public final int endLine
        start at 1, line number of the last character of the token if the token is on a single line, endLine == line
      • endColumn

        public final int endColumn
        start at 1, column number of the last character of the token if the token has only one character, endColumn == column
    • Constructor Detail

      • UnderlinedRange

        public UnderlinedRange​(int line,
                               int column,
                               int endLine,
                               int endColumn)
        Parameters:
        line - , start at 1, line number of the first character of the token, same as TokenLocation#startLine()
        column - , start at 1, column number of the first character of the token, same as TokenLocation#startLineOffset()+1,
        endLine - , start at 1, line number of the last character of the token, same as TokenLocation#endLine(), if the token is on a single line, endLine == line
        endColumn - , start at 1, column number of the last character of the token, same as TokenLocation#endLineOffset(), if the token has only one character, endColumn == column