|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.Annotator.Rewriter
public class Annotator.Rewriter
A visitor to rewrite productions. This visitor rewrites
productions that have been marked with the Properties.SPLIT property to generate the same basic AST with
annotations as without annotations.
Annotator.Detector| Field Summary | |
|---|---|
protected Sequence |
alternative
The current top-level alternative. |
protected java.util.List<Element> |
elements
The list of elements. |
protected boolean |
isTopLevel
The flag for whether the current choice is top-level. |
protected java.util.List<Sequence> |
replacements
The list of replacement sequences. |
| Constructor Summary | |
|---|---|
Annotator.Rewriter()
Create a new rewriter. |
|
| Method Summary | |
|---|---|
void |
visit(FullProduction p)
Visit the specified production. |
void |
visit(Module m)
Visit the specified module. |
void |
visit(OrderedChoice c)
Visit the specified choice. |
void |
visit(Sequence s)
Visit the specified sequence. |
| Methods inherited from class xtc.tree.Visitor |
|---|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Element> elements
protected boolean isTopLevel
protected Sequence alternative
protected java.util.List<Sequence> replacements
| Constructor Detail |
|---|
public Annotator.Rewriter()
| Method Detail |
|---|
public void visit(Module m)
public void visit(FullProduction p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||