| |
|
| java.lang.Object xtc.tree.Visitor xtc.tree.Relocator
Relocator | public class Relocator extends Visitor (Code) | | Visitor to relocate an abstract syntax tree. This visitor strips
all line markers from the abstract syntax tree, while also updating
all nodes with locations to reflect the source location relative to
the last line marker.
author: Robert Grimm version: $Revision: 1.1 $ |
Field Summary | |
protected int | baseLine The line of the last line marker. | protected String | markedFile The currently marked file. | protected int | markedLine The currently marked line. |
Constructor Summary | |
public | Relocator() Create a new relocator. |
baseLine | protected int baseLine(Code) | | The line of the last line marker.
|
markedFile | protected String markedFile(Code) | | The currently marked file.
|
markedLine | protected int markedLine(Code) | | The currently marked line.
|
Relocator | public Relocator()(Code) | | Create a new relocator.
|
relocate | protected void relocate(Node n)(Code) | | Relocate the specified node.
Parameters: n - The node. |
|
|
|