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 TypeMethodDescriptionintcolumn()The column number referred to by the position; column numbers start at 1.booleaninthashCode()intline()The line number referred to by the position; line numbers start at 1.intoffset()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:InputPositionThe character offset referred to by this position; offset numbers start at 0.- Specified by:
offsetin interfaceInputPosition- Returns:
- the offset of this position.
-
line
public int line()Description copied from interface:InputPositionThe line number referred to by the position; line numbers start at 1.- Specified by:
linein interfaceInputPosition- Returns:
- the line number of this position.
-
column
public int column()Description copied from interface:InputPositionThe column number referred to by the position; column numbers start at 1.- Specified by:
columnin interfaceInputPosition- Returns:
- the column number of this position.
-
equals
-
hashCode
public int hashCode() -
toString
-