|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.instruct.LocationMap
public class LocationMap
A LocationMap allocates integer codes to (systemId, lineNumber) pairs. The integer codes are held inside an Expression object to track the location of the expression in the source code
Constructor Summary | |
---|---|
LocationMap()
Create a location map |
Method Summary | |
---|---|
int |
allocateLocationId(String module,
int lineNumber)
Allocate a location identifier to an expression |
int |
getColumnNumber(long locationId)
Get the column number within the document, entity, or module containing a particular location |
int |
getLineNumber(long locationId)
Get the line number corresponding to a locationId |
String |
getSystemId(long locationId)
Get the system identifier corresponding to a locationId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationMap()
Method Detail |
---|
public int allocateLocationId(String module, int lineNumber)
module
- the URI (system identifier) of the modulelineNumber
- the line number of the expression within the module
public String getSystemId(long locationId)
getSystemId
in interface LocationProvider
locationId
- the location identifier
public int getLineNumber(long locationId)
getLineNumber
in interface LocationProvider
locationId
- the location identifier
public int getColumnNumber(long locationId)
LocationProvider
getColumnNumber
in interface LocationProvider
locationId
- identifier of the location in question (as passed down the Receiver pipeline)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |