polyglot.ext.coffer.types
Class Key_c
java.lang.Object
polyglot.ext.jl.types.TypeObject_c
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
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface polyglot.util.Copy |
copy |
name
protected java.lang.String name
Key_c
public Key_c(TypeSystem ts,
Position pos,
java.lang.String name)
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