Class Position

    • Constructor Detail

      • Position

        public Position()
    • Method Detail

      • setLine

        public void setLine​(Integer line)

        The line containing the specified position in the document.

        Parameters:
        line - The line containing the specified position in the document.
      • getLine

        public Integer getLine()

        The line containing the specified position in the document.

        Returns:
        The line containing the specified position in the document.
      • withLine

        public Position withLine​(Integer line)

        The line containing the specified position in the document.

        Parameters:
        line - The line containing the specified position in the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setColumn

        public void setColumn​(Integer column)

        The column in the line containing the specified position in the document.

        Parameters:
        column - The column in the line containing the specified position in the document.
      • getColumn

        public Integer getColumn()

        The column in the line containing the specified position in the document.

        Returns:
        The column in the line containing the specified position in the document.
      • withColumn

        public Position withColumn​(Integer column)

        The column in the line containing the specified position in the document.

        Parameters:
        column - The column in the line containing the specified position in the document.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object