KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > Disamb


1 package polyglot.ast;
2
3 import polyglot.types.*;
4 import polyglot.visit.*;
5 import polyglot.util.*;
6
7 /**
8  * Utility class which is used to disambiguate ambiguous
9  * AST nodes (Expr, Type, Receiver, Qualifier, Prefix).
10  */

11 public interface Disamb
12 {
13     /**
14      * Disambiguate the prefix and name into a unambiguous node of the
15      * appropriate type.
16      * @return An unambiguous AST node, or null if disambiguation fails.
17      */

18     Node disambiguate(Ambiguous amb, ContextVisitor v, Position pos,
19                       Prefix prefix, String JavaDoc name) throws SemanticException;
20 }
21
Popular Tags