public class VariantSorter.Typer extends Visitor
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
VariantSorter.Typer()
Create a new typer.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected boolean create
protected FullProduction production
protected java.util.List<Element> elements
protected java.util.Set<java.lang.String> names
protected Type type
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)
Copyright © 2014. All Rights Reserved.