Class InternalInputPosition

java.lang.Object
org.neo4j.driver.internal.summary.InternalInputPosition
All Implemented Interfaces:
InputPosition

public class InternalInputPosition extends Object implements InputPosition
An input position refers to a specific point in a query string.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalInputPosition(int offset, int line, int column)
    Creating a position from and offset, line number and a column number.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The column number referred to by the position; column numbers start at 1.
    boolean
     
    int
     
    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.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InternalInputPosition

      public InternalInputPosition(int offset, int line, int column)
      Creating a position from and offset, line number and a column number.
      Parameters:
      offset - the offset from the start of the string, starting from 0.
      line - the line number, starting from 1.
      column - the column number, starting from 1.
  • Method Details

    • offset

      public int offset()
      Description copied from interface: InputPosition
      The character offset referred to by this position; offset numbers start at 0.
      Specified by:
      offset in interface InputPosition
      Returns:
      the offset of this position.
    • line

      public int line()
      Description copied from interface: InputPosition
      The line number referred to by the position; line numbers start at 1.
      Specified by:
      line in interface InputPosition
      Returns:
      the line number of this position.
    • column

      public int column()
      Description copied from interface: InputPosition
      The column number referred to by the position; column numbers start at 1.
      Specified by:
      column in interface InputPosition
      Returns:
      the column number of this position.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object