xtc.parser
Class Transformer.Typer

java.lang.Object
  extended by xtc.tree.Visitor
      extended by xtc.parser.Transformer.Typer
Enclosing class:
Transformer

public class Transformer.Typer
extends Visitor

Visitor to deduce a production's type.


Field Summary
protected  java.util.List<Element> elements
          The list of elements.
protected  Type type
          The current type.
 
Constructor Summary
Transformer.Typer()
          Create a new typer.
 
Method Summary
 void visit(OrderedChoice c)
          Visit the specified choice.
 void visit(Production p)
          Visit the specified production.
 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

elements

protected java.util.List<Element> elements
The list of elements.


type

protected Type type
The current type.

Constructor Detail

Transformer.Typer

public Transformer.Typer()
Create a new typer.

Method Detail

visit

public void visit(Production p)
Visit the specified production.


visit

public void visit(OrderedChoice c)
Visit the specified choice.


visit

public void visit(Sequence s)
Visit the specified sequence.



Copyright © 2012. All Rights Reserved.