public final class LocationImpl extends java.lang.Object implements Location
Location interface.| Constructor and Description |
|---|
LocationImpl(Resource resource) |
LocationImpl(Resource resource,
int lineNumber) |
LocationImpl(Resource resource,
int lineNumber,
int columnNumber) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
getColumnNumber()
The column number, or -1 if not known.
|
int |
getLineNumber()
The line within the resource containing the location,
or -1 if the line number is not known.
|
Resource |
getResource()
The resource containing the location.
|
int |
hashCode() |
java.lang.String |
toString() |
public LocationImpl(Resource resource)
public LocationImpl(Resource resource, int lineNumber)
public LocationImpl(Resource resource, int lineNumber, int columnNumber)
public Resource getResource()
LocationgetResource in interface Locationpublic int getLineNumber()
LocationgetLineNumber in interface Locationpublic int getColumnNumber()
LocationgetColumnNumber in interface Locationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object