|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Visitor
xtc.parser.VariantSorter.Typer
public class VariantSorter.Typer
Visitor to determine a generic production's variant type.
| Field Summary | |
|---|---|
protected boolean |
create
The flag for creating a new variant. |
protected java.util.List<Element> |
elements
The list of elements. |
protected java.util.Set<java.lang.String> |
names
The set of node names. |
protected FullProduction |
production
The current production. |
protected Type |
type
The type. |
| Constructor Summary | |
|---|---|
VariantSorter.Typer()
Create a new typer. |
|
| Method Summary | |
|---|---|
Type |
type(Production p,
boolean create)
Determine the specified generic production's variant type. |
Type |
visit(FullProduction p)
Visit the specified full production. |
void |
visit(OrderedChoice c)
Visit the specified ordered choice. |
void |
visit(Sequence s)
Visit the specified sequence. |
| 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 boolean create
protected FullProduction production
protected java.util.List<Element> elements
protected java.util.Set<java.lang.String> names
protected Type type
| Constructor Detail |
|---|
public VariantSorter.Typer()
| Method Detail |
|---|
public Type type(Production p,
boolean create)
create is true, it returns a new
variant type. Otherwise, it returns the error type.
p - The generic production.create - The flag for creating a new variant.
public Type visit(FullProduction p)
public void visit(OrderedChoice c)
public void visit(Sequence s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||