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
Constructor Summary
LocationMap()
Method Summary
intallocateLocationId(String module, int lineNumber)
Allocate a location identifier to an expression
intgetLineNumber(int locationId)
Get the line number corresponding to a locationId
StringgetSystemId(int locationId)
Get the system identifier corresponding to a locationId

Constructor Detail

LocationMap

public LocationMap()

Method Detail

allocateLocationId

public int allocateLocationId(String module, int lineNumber)
Allocate a location identifier to an expression

getLineNumber

public int getLineNumber(int locationId)
Get the line number corresponding to a locationId

getSystemId

public String getSystemId(int locationId)
Get the system identifier corresponding to a locationId