public class Annotator.Rewriter extends Visitor
Properties.SPLIT property to generate the same basic AST with
annotations as without annotations.Annotator.Detector| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Annotator.Rewriter()
Create a new rewriter.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected java.util.List<Element> elements
protected boolean isTopLevel
protected Sequence alternative
protected java.util.List<Sequence> replacements
public void visit(Module m)
public void visit(FullProduction p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
Copyright © 2014. All Rights Reserved.