public class LineNumberMap extends Object
| Constructor and Description |
|---|
LineNumberMap()
Create a LineNumberMap with an initial capacity of 200 nodes, which is expanded as necessary
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public LineNumberMap()
public void setLineAndColumn(int sequence,
int line,
int column)
sequence - the sequence number of the nodeline - the line number position of the nodecolumn - the column position of the nodepublic int getLineNumber(int sequence)
sequence - the sequence number held in the nodepublic int getColumnNumber(int sequence)
sequence - the sequence number held in the nodeCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.