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()
Location
getResource
in interface Location
public int getLineNumber()
Location
getLineNumber
in interface Location
public int getColumnNumber()
Location
getColumnNumber
in interface Location
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object