polyglot.ext.jl.types
Class UnknownQualifier_c

java.lang.Object
  extended by polyglot.ext.jl.types.TypeObject_c
      extended by polyglot.ext.jl.types.UnknownQualifier_c
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Qualifier, TypeObject, UnknownQualifier, Copy

public class UnknownQualifier_c
extends TypeObject_c
implements UnknownQualifier

An unknown type qualifier. This is used as a place-holder until types are disambiguated.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Constructor Summary
UnknownQualifier_c(TypeSystem ts)
           
 
Method Summary
 boolean isCanonical()
          Return true if the type object contains no unknown/ambiguous types.
 boolean isPackage()
          Return true if the qualifier is a package.
 boolean isType()
          Return true if the qualifier is a type.
 Package toPackage()
          Cast the qualifier to a package, or return null.
 java.lang.String toString()
           
 Type toType()
          Cast the qualifier to a type, or return null.
 
Methods inherited from class polyglot.ext.jl.types.TypeObject_c
copy, equals, equalsImpl, hashCode, position, typeSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

UnknownQualifier_c

public UnknownQualifier_c(TypeSystem ts)
Method Detail

isCanonical

public boolean isCanonical()
Description copied from interface: TypeObject
Return true if the type object contains no unknown/ambiguous types.

Specified by:
isCanonical in interface TypeObject

isPackage

public boolean isPackage()
Description copied from interface: Qualifier
Return true if the qualifier is a package.

Specified by:
isPackage in interface Qualifier

isType

public boolean isType()
Description copied from interface: Qualifier
Return true if the qualifier is a type.

Specified by:
isType in interface Qualifier

toPackage

public Package toPackage()
Description copied from interface: Qualifier
Cast the qualifier to a package, or return null. This method will probably be deprecated.

Specified by:
toPackage in interface Qualifier

toType

public Type toType()
Description copied from interface: Qualifier
Cast the qualifier to a type, or return null. This method will probably be deprecated.

Specified by:
toType in interface Qualifier

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object