|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.GrammarVisitor
xtc.parser.Renamer
public class Renamer
Visitor to rename nonterminals.
| Nested Class Summary | |
|---|---|
static interface |
Renamer.Translation
The interface to the actual mapping from nonterminals to nonterminals. |
| Field Summary | |
|---|---|
protected Renamer.Translation |
translation
The mapping. |
| Fields inherited from class xtc.parser.GrammarVisitor |
|---|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace |
| Constructor Summary | |
|---|---|
Renamer(Runtime runtime,
Analyzer analyzer,
Renamer.Translation translation)
Create a new renamer. |
|
| Method Summary | |
|---|---|
Element |
visit(NonTerminal nt)
Visit the specified nonterminal. |
| Methods inherited from class xtc.parser.GrammarVisitor |
|---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Methods inherited from class xtc.tree.Visitor |
|---|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Renamer.Translation translation
| Constructor Detail |
|---|
public Renamer(Runtime runtime,
Analyzer analyzer,
Renamer.Translation translation)
runtime - The runtime.analyzer - The analyzer utility.translation - The mapping from nonterminals to nonterminals.| Method Detail |
|---|
public Element visit(NonTerminal nt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||