public class ReferenceCounter extends GrammarVisitor
meta-data creator
before applying this visitor. Further note that the grammar must
have been simplified and inlined
before applying this visitor. Finally, note that this visitor
assumes that the entire grammar is contained in a single module.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isTransformable
The flag for whether the current production is a transformable
direct left-recursive production.
|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
ReferenceCounter(Runtime runtime,
Analyzer analyzer)
Create a new reference counter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
visit(Module m)
Visit the specified grammar.
|
Element |
visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
visit(OrderedChoice c)
Visit the specified ordered choice.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected boolean isTransformable
public java.lang.Object visit(Module m)
visit in class GrammarVisitorpublic Element visit(OrderedChoice c)
visit in class GrammarVisitorpublic Element visit(NonTerminal nt)
Copyright © 2014. All Rights Reserved.