public final class Location
extends java.lang.Object
Both line and column numbers are assumed to be 1-based. That is the first character is on line 1, column 1.
Modifier and Type | Field and Description |
---|---|
private int |
column |
private java.lang.String |
filename |
private int |
line |
Constructor and Description |
---|
Location(org.antlr.runtime.RecognitionException re) |
Location(java.lang.String filename,
int line,
int column) |
Modifier and Type | Method and Description |
---|---|
int |
getColumn() |
java.lang.String |
getFilename() |
int |
getLine() |
java.lang.String |
toString()
Internal string representation.
|
private final java.lang.String filename
private final int line
private final int column
public Location(java.lang.String filename, int line, int column)
filename
- the filename may be null.public Location(org.antlr.runtime.RecognitionException re)
public java.lang.String getFilename()
public int getLine()
public int getColumn()
public java.lang.String toString()
toString
in class java.lang.Object