java.lang.Object
org.neo4j.driver.internal.summary.InternalInputPosition
- All Implemented Interfaces:
InputPosition
An input position refers to a specific point in a query string.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalInputPosition
(int offset, int line, int column) Creating a position from and offset, line number and a column number. -
Method Summary
Modifier and TypeMethodDescriptionint
column()
The column number referred to by the position; column numbers start at 1.boolean
int
hashCode()
int
line()
The line number referred to by the position; line numbers start at 1.int
offset()
The character offset referred to by this position; offset numbers start at 0.toString()
-
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 interfaceInputPosition
- 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 interfaceInputPosition
- 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 interfaceInputPosition
- Returns:
- the column number of this position.
-
equals
-
hashCode
public int hashCode() -
toString
-