1 package polyglot.types; 2 3 /** 4 * A <code>Qualifier</code> can be used to qualify a type: it can be either 5 * a package or a named class type. 6 */ 7 public interface Qualifier extends TypeObject 8 { 9 /** 10 * Return true if the qualifier is a package. 11 */ 12 boolean isPackage(); 13 14 /** 15 * Cast the qualifier to a package, or return null. 16 * This method will probably be deprecated. 17 */ 18 Package toPackage(); 19 20 /** 21 * Return true if the qualifier is a type. 22 */ 23 boolean isType(); 24 25 /** 26 * Cast the qualifier to a type, or return null. 27 * This method will probably be deprecated. 28 */ 29 Type toType(); 30 } 31