public class ElementVoider extends Visitor
resolved into a single module, that text-only
productions have been marked as such, and that
all expressions have been simplified.| Modifier and Type | Field and Description |
|---|---|
protected Analyzer |
analyzer
The analyzer utility.
|
protected boolean |
hasValue
The flag for potentially having a value.
|
protected boolean |
isLastElement
The flag for the last element.
|
protected boolean |
isTopLevel
The flag for the top-level element.
|
protected Runtime |
runtime
The runtime.
|
protected boolean |
suppressVoided
The flag for suppressing the insertion of voided elements.
|
| Constructor and Description |
|---|
ElementVoider(Runtime runtime,
Analyzer analyzer)
Create a new element voider.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
visit(Action a)
Visit the specified action.
|
Binding |
visit(Binding b)
Visit the specified binding.
|
Element |
visit(Element e)
Visit the specified element.
|
void |
visit(FullProduction p)
Visit the specified full production.
|
void |
visit(Module m)
Visit the specified self-contained module.
|
NonTerminal |
visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
visit(OrderedChoice c)
Visit the specified ordered choice.
|
ParserAction |
visit(ParserAction pa)
Visit the specified parser action.
|
Element |
visit(Predicate p)
Visit the specified predicate.
|
Element |
visit(Quantification q)
Visit the specified quantification.
|
Element |
visit(Sequence s)
Visit the specified sequence.
|
StringMatch |
visit(StringMatch m)
Visit the specified string match.
|
VoidedElement |
visit(VoidedElement v)
Visit the specified voided element.
|
protected Element |
wrap(Element el)
Wrap the specified element in a voiding operator.
|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected final Runtime runtime
protected final Analyzer analyzer
protected boolean isTopLevel
protected boolean isLastElement
protected boolean suppressVoided
protected boolean hasValue
protected Element wrap(Element el)
el - The element to wrap.public void visit(Module m)
public void visit(FullProduction p)
public Element visit(OrderedChoice c)
public Element visit(Quantification q)
public VoidedElement visit(VoidedElement v)
public StringMatch visit(StringMatch m)
public ParserAction visit(ParserAction pa)
public NonTerminal visit(NonTerminal nt)
Copyright © 2014. All Rights Reserved.