polyglot.ast
Interface Disamb

All Known Implementing Classes:
Disamb_c

public interface Disamb

Utility class which is used to disambiguate ambiguous AST nodes (Expr, Type, Receiver, Qualifier, Prefix).


Method Summary
 Node disambiguate(Ambiguous amb, ContextVisitor v, Position pos, Prefix prefix, java.lang.String name)
          Disambiguate the prefix and name into a unambiguous node of the appropriate type.
 

Method Detail

disambiguate

Node disambiguate(Ambiguous amb,
                  ContextVisitor v,
                  Position pos,
                  Prefix prefix,
                  java.lang.String name)
                  throws SemanticException
Disambiguate the prefix and name into a unambiguous node of the appropriate type.

Returns:
An unambiguous AST node, or null if disambiguation fails.
Throws:
SemanticException