public final class InputPosition extends Object
Modifier and Type | Field and Description |
---|---|
static InputPosition |
empty
The empty position
|
Constructor and Description |
---|
InputPosition(int offset,
int line,
int column)
Creating a position from and offset, line number and a column number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getColumn()
The column number referred to by the position; column numbers start at 1.
|
int |
getLine()
The line number referred to by the position; line numbers start at 1.
|
int |
getOffset()
The character offset referred to by this position; offset numbers start at 0.
|
int |
hashCode() |
public static InputPosition empty
public InputPosition(int offset, int line, int column)
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.public int getOffset()
public int getLine()
public int getColumn()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.