polyglot.visit
Class Disambiguator

java.lang.Object
  extended by polyglot.visit.NodeVisitor
      extended by polyglot.visit.HaltingVisitor
          extended by polyglot.visit.ErrorHandlingVisitor
              extended by polyglot.visit.ContextVisitor
                  extended by polyglot.visit.DisambiguationDriver
                      extended by polyglot.visit.AmbiguityRemover
                          extended by polyglot.visit.Disambiguator
All Implemented Interfaces:
java.lang.Cloneable, Copy
Direct Known Subclasses:
BodyDisambiguator, OuterScopeDisambiguator, SignatureDisambiguator, SupertypeDisambiguator

public class Disambiguator
extends AmbiguityRemover

Visitor which performs type checking on the AST.


Nested Class Summary
 
Nested classes/interfaces inherited from class polyglot.visit.AmbiguityRemover
AmbiguityRemover.AmbChecker
 
Field Summary
 
Fields inherited from class polyglot.visit.ContextVisitor
context, outer
 
Fields inherited from class polyglot.visit.ErrorHandlingVisitor
error, job, nf, ts
 
Constructor Summary
Disambiguator(DisambiguationDriver dd)
           
Disambiguator(Job job, TypeSystem ts, NodeFactory nf, Context c)
           
 
Method Summary
 NodeVisitor begin()
          Part of the initialization done by begin() in an ErrorHandlingVisitor method is initializing the error-handling state.
 
Methods inherited from class polyglot.visit.AmbiguityRemover
astAmbiguityCount, bypass, bypass, bypassChildren, enterCall, isASTDisambiguated, leaveCall, override
 
Methods inherited from class polyglot.visit.ContextVisitor
addDecls, context, context, enter, enterScope, leave, superEnter
 
Methods inherited from class polyglot.visit.ErrorHandlingVisitor
catchErrors, enterCall, enterError, errorQueue, hasErrors, job, leaveCall, leaveCall, nodeFactory, typeSystem
 
Methods inherited from class polyglot.visit.HaltingVisitor
visitChildren
 
Methods inherited from class polyglot.visit.NodeVisitor
copy, enter, finish, finish, leave, override, toString, visitEdge, visitEdgeNoOverride
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Disambiguator

public Disambiguator(DisambiguationDriver dd)

Disambiguator

public Disambiguator(Job job,
                     TypeSystem ts,
                     NodeFactory nf,
                     Context c)
Method Detail

begin

public NodeVisitor begin()
Description copied from class: ErrorHandlingVisitor
Part of the initialization done by begin() in an ErrorHandlingVisitor method is initializing the error-handling state.

Overrides:
begin in class ContextVisitor
Returns:
the NodeVisitor to traverse the ast with. If null is returned, the ast is not traversed.