net.sf.saxon.instruct
Class LocationMap
public
class
LocationMap
extends Object
implements LocationProvider, Serializable
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
Method Summary |
int | allocateLocationId(String module, int lineNumber)
Allocate a location identifier to an expression |
int | getLineNumber(int locationId)
Get the line number corresponding to a locationId |
String | getSystemId(int locationId)
Get the system identifier corresponding to a locationId |
public LocationMap()
public int allocateLocationId(String module, int lineNumber)
Allocate a location identifier to an expression
public int getLineNumber(int locationId)
Get the line number corresponding to a locationId
public String getSystemId(int locationId)
Get the system identifier corresponding to a locationId