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, Id name)
          Disambiguate the prefix and name into a unambiguous node of the appropriate type.
 Node disambiguate(Ambiguous amb, ContextVisitor v, Position pos, Prefix prefix, java.lang.String name)
          Deprecated.  
 

Method Detail

disambiguate

Node disambiguate(Ambiguous amb,
                  ContextVisitor v,
                  Position pos,
                  Prefix prefix,
                  Id 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

disambiguate

Node disambiguate(Ambiguous amb,
                  ContextVisitor v,
                  Position pos,
                  Prefix prefix,
                  java.lang.String name)
                  throws SemanticException
Deprecated. 

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