public class SimpleLocation extends Object implements ExtendedLocation, StaticLocation
ExtendedLocation.| Constructor and Description |
|---|
SimpleLocation(Location loc) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
int columnNumber,
int characterOffset,
Location nestedLocation) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
int columnNumber,
Location nestedLocation) |
SimpleLocation(String publicId,
String systemId,
int lineNumber,
Location nestedLocation) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCharacterOffset() |
int |
getColumnNumber() |
int |
getLineNumber() |
Location |
getNestedLocation()
Returns a nested
Location. |
String |
getPublicId() |
String |
getSystemId() |
String |
toString() |
public SimpleLocation(String publicId, String systemId, int lineNumber, Location nestedLocation)
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, Location nestedLocation)
public SimpleLocation(String publicId, String systemId, int lineNumber, int columnNumber, int characterOffset, Location nestedLocation)
public SimpleLocation(Location loc)
public int getCharacterOffset()
getCharacterOffset in interface Locationpublic int getColumnNumber()
getColumnNumber in interface Locationpublic int getLineNumber()
getLineNumber in interface Locationpublic String getPublicId()
getPublicId in interface Locationpublic String getSystemId()
getSystemId in interface Locationpublic Location getNestedLocation()
ExtendedLocationLocation. Nested locations can be used to locate
errors in linked files. This is useful when working with external entities,
included files, and so forth.getNestedLocation in interface ExtendedLocationLocation, or null.Copyright © 2017. All rights reserved.