KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ext > jl > types > UnknownQualifier_c


1 package polyglot.ext.jl.types;
2
3 import polyglot.types.*;
4 import polyglot.types.Package;
5 import polyglot.util.Position;
6
7 /**
8  * An unknown type qualifier. This is used as a place-holder until types
9  * are disambiguated.
10  */

11 public class UnknownQualifier_c extends TypeObject_c implements UnknownQualifier
12 {
13     public UnknownQualifier_c(TypeSystem ts) {
14         super(ts);
15     }
16
17     public boolean isCanonical() { return false; }
18     public boolean isPackage() { return false; }
19     public boolean isType() { return false; }
20
21     public Package JavaDoc toPackage() { return null; }
22     public Type toType() { return null; }
23
24     public String JavaDoc toString() {
25         return "<unknown>";
26     }
27 }
28
Popular Tags