polyglot.types
Interface Qualifier

All Superinterfaces:
java.lang.Cloneable, Copy, java.io.Serializable, TypeObject
All Known Subinterfaces:
ArrayType, ClassType, CofferClassType, CofferParsedClassType, CofferSubstType, InstType, NullType, Package, ParsedClassType, PrimitiveType, ReferenceType, SubstType, Type, UnknownPackage, UnknownQualifier, UnknownType
All Known Implementing Classes:
ArrayType_c, ClassType_c, CofferParsedClassType_c, CofferSubstClassType_c, NullType_c, Package_c, PaoParsedClassType_c, PaoPrimitiveType_c, ParsedClassType_c, PrimitiveType_c, ReferenceType_c, SubstClassType_c, Type_c, UnknownPackage_c, UnknownQualifier_c, UnknownType_c

public interface Qualifier
extends TypeObject

A Qualifier can be used to qualify a type: it can be either a package or a named class type.


Method Summary
 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.
 Type toType()
          Cast the qualifier to a type, or return null.
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, isCanonical, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

isPackage

boolean isPackage()
Return true if the qualifier is a package.


toPackage

Package toPackage()
Cast the qualifier to a package, or return null. This method will probably be deprecated.


isType

boolean isType()
Return true if the qualifier is a type.


toType

Type toType()
Cast the qualifier to a type, or return null. This method will probably be deprecated.