public final class InputPosition extends Object implements Serializable
| Constructor and Description |
|---|
InputPosition(int lineNumber,
int columnNumber)
Constructs a new
InputPosition. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Returns the number of the current column within the current line within the input stream (beginning with 1).
|
int |
getLineNumber()
Returns the number of the current line within the input stream (beginning with 1).
|
String |
toString() |
public InputPosition(int lineNumber,
int columnNumber)
InputPosition.lineNumber - the line numbercolumnNumber - the column numberpublic int getLineNumber()
public int getColumnNumber()
Copyright © 2014. All rights reserved.