org.eclipse.internal.xtend.type.baseimpl.types
Class CollectionTypeImpl

java.lang.Object
  extended by org.eclipse.xtend.typesystem.AbstractTypeImpl
      extended by org.eclipse.internal.xtend.type.baseimpl.types.BuiltinBaseType
          extended by org.eclipse.internal.xtend.type.baseimpl.types.CollectionTypeImpl
All Implemented Interfaces:
ParameterizedType, Type
Direct Known Subclasses:
ListTypeImpl, SetTypeImpl

public class CollectionTypeImpl
extends BuiltinBaseType
implements ParameterizedType

Author:
Sven Efftinge (http://www.efftinge.de), Arno Haase

Constructor Summary
CollectionTypeImpl(Type innerType, TypeSystem ts, java.lang.String name)
           
 
Method Summary
 ParameterizedType cloneWithInnerType(Type innerType)
           
 Feature[] getContributedFeatures()
           
 Type getInnerType()
           
 java.util.Set<Type> getSuperTypes()
           
protected  boolean internalIsAssignableFrom(Type t)
           
 boolean isInstance(java.lang.Object o)
           
 java.lang.Object newInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtend.typesystem.AbstractTypeImpl
convert, equals, getAllFeatures, getAllOperations, getAllProperties, getAllStaticProperties, getDocumentation, getFeature, getName, getOperation, getProperty, getStaticProperty, getTypeSystem, hashCode, internalGetSuperTypes, isAbstract, isAssignableFrom
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtend.typesystem.Type
convert, getAllFeatures, getAllOperations, getAllProperties, getAllStaticProperties, getDocumentation, getFeature, getName, getOperation, getProperty, getStaticProperty, getTypeSystem, isAbstract, isAssignableFrom
 

Constructor Detail

CollectionTypeImpl

public CollectionTypeImpl(Type innerType,
                          TypeSystem ts,
                          java.lang.String name)
Method Detail

getInnerType

public Type getInnerType()
Specified by:
getInnerType in interface ParameterizedType

cloneWithInnerType

public ParameterizedType cloneWithInnerType(Type innerType)
Specified by:
cloneWithInnerType in interface ParameterizedType

internalIsAssignableFrom

protected boolean internalIsAssignableFrom(Type t)
Overrides:
internalIsAssignableFrom in class AbstractTypeImpl

isInstance

public boolean isInstance(java.lang.Object o)
Specified by:
isInstance in interface Type

newInstance

public java.lang.Object newInstance()
Specified by:
newInstance in interface Type

getContributedFeatures

public Feature[] getContributedFeatures()
Specified by:
getContributedFeatures in class AbstractTypeImpl

getSuperTypes

public java.util.Set<Type> getSuperTypes()
Specified by:
getSuperTypes in interface Type
Overrides:
getSuperTypes in class AbstractTypeImpl

toString

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