public class Annotator.Detector extends Visitor
Properties.SPLIT property. For each (flattened) alternative
that contains any of the two cases, it also annotates the last
sequence with a Annotator.IndexPair. The first index is
non-negative for the first case. The second index is
non-negative for the second case.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Element> |
elements
The list of elements.
|
protected boolean |
needToSplit
The flag for whether the production needs to be split.
|
| Constructor and Description |
|---|
Annotator.Detector()
Create a new detector.
|
| 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 boolean needToSplit
protected java.util.List<Element> elements
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.