public class Location
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private short |
columnNumber |
private short |
lineNumber |
static Location |
NOWHERE
Representation of an unspecified location.
|
private java.lang.String |
optionalFileName |
Constructor and Description |
---|
Location(java.lang.String optionalFileName,
short lineNumber,
short columnNumber) |
Modifier and Type | Method and Description |
---|---|
short |
getColumnNumber() |
java.lang.String |
getFileName() |
short |
getLineNumber() |
java.lang.String |
toString()
Converts this
Location into an english text, like 'File Main.java, Line 23, Column 79 '. |
public static final Location NOWHERE
private final java.lang.String optionalFileName
private final short lineNumber
private final short columnNumber
public Location(java.lang.String optionalFileName, short lineNumber, short columnNumber)
optionalFileName
- A human-readable indication where the document related to this
Location
can be foundpublic java.lang.String getFileName()
null
public short getLineNumber()
public short getColumnNumber()
public java.lang.String toString()
Location
into an english text, like 'File Main.java, Line 23, Column 79
'.toString
in class java.lang.Object