public class RootFinder extends GrammarVisitor
root property.
Note that this visitor assumes that the entire grammar is
contained in a single module.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<NonTerminal> |
topLevel
The set of qualified top-level nonterminals.
|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
RootFinder(Runtime runtime,
Analyzer analyzer)
Create a new root finder.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
visit(Module m)
Visit the specified grammar.
|
Element |
visit(NonTerminal nt)
Visit the specified nonterminal.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected java.util.Set<NonTerminal> topLevel
public java.lang.Object visit(Module m)
visit in class GrammarVisitorpublic Element visit(NonTerminal nt)
Copyright © 2014. All Rights Reserved.