polyglot.ext.coffer.types
Class KeySet_c

java.lang.Object
  extended by polyglot.ext.jl.types.TypeObject_c
      extended by polyglot.ext.coffer.types.KeySet_c
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, KeySet, TypeObject, Copy

public class KeySet_c
extends TypeObject_c
implements KeySet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class polyglot.ext.jl.types.TypeObject_c
position, ts
 
Constructor Summary
KeySet_c(TypeSystem ts, Position pos)
           
 
Method Summary
 KeySet add(Key key)
           
 KeySet addAll(KeySet keys)
           
 boolean contains(Key key)
           
 boolean containsAll(KeySet keys)
           
 boolean equalsImpl(TypeObject o)
          Default implementation is pointer equality.
 boolean isCanonical()
          Return true if the type object contains no unknown/ambiguous types.
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 KeySet remove(Key key)
           
 KeySet removeAll(KeySet keys)
           
 KeySet retainAll(KeySet keys)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class polyglot.ext.jl.types.TypeObject_c
copy, equals, 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
position, typeSystem
 
Methods inherited from interface polyglot.util.Copy
copy
 

Constructor Detail

KeySet_c

public KeySet_c(TypeSystem ts,
                Position pos)
Method Detail

size

public int size()
Specified by:
size in interface KeySet

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface KeySet

contains

public boolean contains(Key key)
Specified by:
contains in interface KeySet

add

public KeySet add(Key key)
Specified by:
add in interface KeySet

remove

public KeySet remove(Key key)
Specified by:
remove in interface KeySet

addAll

public KeySet addAll(KeySet keys)
Specified by:
addAll in interface KeySet

removeAll

public KeySet removeAll(KeySet keys)
Specified by:
removeAll in interface KeySet

retainAll

public KeySet retainAll(KeySet keys)
Specified by:
retainAll in interface KeySet

containsAll

public boolean containsAll(KeySet keys)
Specified by:
containsAll in interface KeySet

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()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface KeySet

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

toString

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