polyglot.ext.coffer.types
Class Key_c

java.lang.Object
  extended by polyglot.ext.jl.types.TypeObject_c
      extended by polyglot.ext.coffer.types.Key_c
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Key, TypeObject, Copy
Direct Known Subclasses:
InstKey_c, ParamKey_c, UnknownKey_c

public abstract class Key_c
extends TypeObject_c
implements Key

See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Constructor Summary
Key_c(TypeSystem ts, Position pos, java.lang.String name)
           
 
Method Summary
 boolean equalsImpl(TypeObject o)
          Default implementation is pointer equality.
 int hashCode()
           
 boolean isCanonical()
          Return true if the type object contains no unknown/ambiguous types.
 java.lang.String name()
           
 Key name(java.lang.String name)
           
 java.lang.String toString()
           
 
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.TypeObject
position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Field Detail

name

protected java.lang.String name
Constructor Detail

Key_c

public Key_c(TypeSystem ts,
             Position pos,
             java.lang.String name)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface Key

name

public Key name(java.lang.String name)

equalsImpl

public boolean equalsImpl(TypeObject o)
Description copied from class: TypeObject_c
Default implementation is pointer equality.

Specified by:
equalsImpl in interface TypeObject
Overrides:
equalsImpl in class TypeObject_c
See Also:
TypeObject_c.equalsImpl(TypeObject), Object.hashCode()

hashCode

public int hashCode()
Overrides:
hashCode in class TypeObject_c

toString

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

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