net.sf.saxon.tree
public class LineNumberMap extends Object
Constructor Summary | |
---|---|
LineNumberMap()
Create a LineNumberMap with an initial capacity of 200 nodes, which is expanded as necessary |
Method Summary | |
---|---|
int | getColumnNumber(int sequence)
Get the column number corresponding to a given sequence number |
int | getLineNumber(int sequence)
Get the line number corresponding to a given sequence number |
void | setLineAndColumn(int sequence, int line, int column)
Set the line number corresponding to a given sequence number |
Parameters: sequence the sequence number held in the node
Returns: the corresponding column number
Parameters: sequence the sequence number held in the node
Returns: the corresponding line number
Parameters: sequence the sequence number of the node line the line number position of the node column the column position of the node