Interface InputPosition

All Known Implementing Classes:
InternalInputPosition

@Immutable public interface InputPosition
An input position refers to a specific character in a query.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The column number referred to by the position; column numbers start at 1.
    int
    The line number referred to by the position; line numbers start at 1.
    int
    The character offset referred to by this position; offset numbers start at 0.
  • Method Details

    • offset

      int offset()
      The character offset referred to by this position; offset numbers start at 0.
      Returns:
      the offset of this position.
    • line

      int line()
      The line number referred to by the position; line numbers start at 1.
      Returns:
      the line number of this position.
    • column

      int column()
      The column number referred to by the position; column numbers start at 1.
      Returns:
      the column number of this position.