polyglot.ext.jl.types
Class UnknownPackage_c

java.lang.Object
  extended by polyglot.ext.jl.types.TypeObject_c
      extended by polyglot.ext.jl.types.Package_c
          extended by polyglot.ext.jl.types.UnknownPackage_c
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Named, Package, Qualifier, TypeObject, UnknownPackage, Copy

public class UnknownPackage_c
extends Package_c
implements UnknownPackage

An unknown type. 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.Package_c
fullname, name, prefix
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Constructor Summary
protected UnknownPackage_c()
          Used for deserializing types.
  UnknownPackage_c(TypeSystem ts)
          Creates a new type in the given a TypeSystem.
 
Method Summary
 boolean isCanonical()
          Return true if the type object contains no unknown/ambiguous types.
 java.lang.String toString()
           
 java.lang.String translate(Resolver c)
          Return a string that is the translation of this package.
 
Methods inherited from class polyglot.ext.jl.types.Package_c
equalsImpl, fullName, hashCode, isPackage, isType, name, prefix, toPackage, toType
 
Methods inherited from class polyglot.ext.jl.types.TypeObject_c
copy, equals, position, typeSystem
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.types.Package
prefix
 
Methods inherited from interface polyglot.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.types.Named
fullName, name
 
Methods inherited from interface polyglot.types.TypeObject
equalsImpl, position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

UnknownPackage_c

protected UnknownPackage_c()
Used for deserializing types.


UnknownPackage_c

public UnknownPackage_c(TypeSystem ts)
Creates a new type in the given a TypeSystem.

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
Overrides:
isCanonical in class Package_c

translate

public java.lang.String translate(Resolver c)
Description copied from interface: Package
Return a string that is the translation of this package.

Specified by:
translate in interface Package
Overrides:
translate in class Package_c
Parameters:
c - A resolver in which to look up the package.

toString

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