public class GenericVoider extends GrammarVisitor
Node or GNode as their types.
This visitor assumes that the entire grammar is contained in a
single module.analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
GenericVoider(Runtime runtime,
Analyzer analyzer)
Create a new generic voider.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
check(UnaryOperator op)
Check the specified binding or string match.
|
Element |
visit(Binding b)
Visit the specified binding.
|
java.lang.Object |
visit(Module m)
Visit the specified grammar.
|
Element |
visit(StringMatch m)
Visit the specified string match.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected Element check(UnaryOperator op)
op - The binding or string match.public java.lang.Object visit(Module m)
visit in class GrammarVisitorpublic Element visit(Binding b)
visit in class GrammarVisitorpublic Element visit(StringMatch m)
visit in class GrammarVisitorCopyright © 2014. All Rights Reserved.