|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xsugar.xml.LocationMap
public class LocationMap
Location map for keeping track of locations before/after input normalization.
Constructor Summary | |
---|---|
LocationMap()
Constructs a new empty location map. |
Method Summary | |
---|---|
Location |
lookup(Location loc)
Find real location corresponding to the given index. |
void |
put(int index,
int real_line,
int real_col)
Puts a new entry into the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationMap()
Method Detail |
---|
public Location lookup(Location loc)
loc
- original location
public void put(int index, int real_line, int real_col)
index
- index in normalized stringreal_line
- line number in original stringreal_col
- column in original string
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |