public class Renamer extends GrammarVisitor
| Modifier and Type | Class and Description |
|---|---|
static interface |
Renamer.Translation
The interface to the actual mapping from nonterminals to
nonterminals.
|
| Modifier and Type | Field and Description |
|---|---|
protected Renamer.Translation |
translation
The mapping.
|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace| Constructor and Description |
|---|
Renamer(Runtime runtime,
Analyzer analyzer,
Renamer.Translation translation)
Create a new renamer.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
visit(NonTerminal nt)
Visit the specified nonterminal.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitdispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected Renamer.Translation translation
public Renamer(Runtime runtime, Analyzer analyzer, Renamer.Translation translation)
runtime - The runtime.analyzer - The analyzer utility.translation - The mapping from nonterminals to nonterminals.public Element visit(NonTerminal nt)
Copyright © 2014. All Rights Reserved.