|
||||||||||
| 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.GenericVoider
public class GenericVoider
Visitor to turn generic productions into void productions. Note
that this visitor also voids productions that have Node or GNode as their types.
| Field Summary |
|---|
| Fields inherited from class xtc.parser.GrammarVisitor |
|---|
analyzer, isBound, isLastElement, isPredicate, isRepeatedOnce, isTopLevel, isVoided, needsSequence, runtime, transformInPlace |
| Constructor Summary | |
|---|---|
GenericVoider(Runtime runtime,
Analyzer analyzer)
Create a new generic voider. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class xtc.parser.GrammarVisitor |
|---|
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 |
| Constructor Detail |
|---|
public GenericVoider(Runtime runtime,
Analyzer analyzer)
runtime - The runtime.analyzer - The analyzer utility.| Method Detail |
|---|
protected 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 GrammarVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||