@Immutable public class SimpleLocation extends Object implements ILocation
ILocation interface. The implementation
is immutable.| Modifier and Type | Field and Description |
|---|---|
static SimpleLocation |
NO_LOCATION
A constant representing no location
|
ILLEGAL_NUMBER| Constructor and Description |
|---|
SimpleLocation(String sResourceID) |
SimpleLocation(String sResourceID,
int nLineNumber,
int nColumnNumber) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleLocation |
create(Location aLocator) |
static SimpleLocation |
create(Locator aLocator) |
static SimpleLocation |
create(SAXParseException aLocator) |
static SimpleLocation |
create(SourceLocator aLocator) |
boolean |
equals(Object o) |
int |
getColumnNumber() |
int |
getLineNumber() |
String |
getResourceID() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsString, hasColumnNumber, hasLineNumber, hasResourceID, isAnyInformationPresentpublic static final SimpleLocation NO_LOCATION
@Nullable public String getResourceID()
getResourceID in interface ILocationnull.public int getLineNumber()
getLineNumber in interface ILocationILocation.ILLEGAL_NUMBER if no line number
is present.public int getColumnNumber()
getColumnNumber in interface ILocationILocation.ILLEGAL_NUMBER if no column
number is present.@Nullable public static SimpleLocation create(@Nullable Locator aLocator)
@Nullable public static SimpleLocation create(@Nullable SourceLocator aLocator)
@Nullable public static SimpleLocation create(@Nullable SAXParseException aLocator)
@Nullable public static SimpleLocation create(@Nullable Location aLocator)
Copyright © 2014–2017 Philip Helger. All rights reserved.