Constructor and Description |
---|
Position(int position)
Constructor.
|
Position(int line,
int column)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the current column.
|
int |
getLine()
Returns the current line.
|
int |
getPosition()
Returns the current byte position.
|
String |
toString() |
public Position(int line, int column)
line
- The current line number.column
- The current column number.public Position(int position)
position
- The current byte position.public int getLine()
-1
if not specified.public int getColumn()
-1
if not specified.public int getPosition()
-1
if not specified.Copyright © 2018 Apache. All rights reserved.