com.icl.saxon.tree

Class LineNumberMap

public class LineNumberMap extends Object

Line numbers are not held in nodes in the tree, because they are not usually needed. This class provides a map from element sequence numbers to line numbers: it is linked to the root node of the tree.

Author: Michael H. Kay

Constructor Summary
LineNumberMap()
Method Summary
intgetLineNumber(int sequence)
Get the line number corresponding to a given sequence number
voidsetLineNumber(int sequence, int line)
Set the line number corresponding to a given sequence number

Constructor Detail

LineNumberMap

public LineNumberMap()

Method Detail

getLineNumber

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

setLineNumber

public void setLineNumber(int sequence, int line)
Set the line number corresponding to a given sequence number