org.eclipse.xtend.typesystem
Interface Type

All Known Subinterfaces:
ParameterizedType
All Known Implementing Classes:
AbstractTypeImpl, AdviceContextType, BooleanTypeImpl, BuiltinBaseType, CollectionTypeImpl, DefinitionType, EClassType, EDataTypeType, EEnumType, EFeatureMapEntryTypeImpl, EFeatureMapTypeImpl, EFeatureType, EMapEntryType, EMapType, EmfListType, EnumType, EObjectType, FeatureTypeImpl, IntegerTypeImpl, IteratorType, JavaTypeImpl, JdtTypeImpl, ListTypeImpl, MultipleStereotypeType, ObjectTypeImpl, OperationTypeImpl, PropertyTypeImpl, QNameType, RealTypeImpl, SetTypeImpl, StaticPropertyTypeImpl, StereotypeType, StringTypeImpl, TypeTypeImpl, VoidType, XMLEClassType, XMLFeatureMapTypeImpl

public interface Type

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

Method Summary
 java.lang.Object convert(java.lang.Object src, java.lang.Class<?> targetType)
          converts the given Object to an instance of the given Class, if this type is responsible for java objects of the given Class and the given Object
 java.util.Set<? extends Callable> getAllFeatures()
           
 java.util.Set<? extends Operation> getAllOperations()
           
 java.util.Set<? extends Property> getAllProperties()
           
 java.util.Set<? extends StaticProperty> getAllStaticProperties()
           
 java.lang.String getDocumentation()
           
 Callable getFeature(java.lang.String name, Type[] parameterTypes)
          finds a feature with the given name on the given type with respect to the given parametertypes this method handles polymorphistic resolution for parameter types
 java.lang.String getName()
           
 Operation getOperation(java.lang.String name, Type[] parameterTypes)
          finds an operation with the given name on the given type with respect to the given parametertypes this method handles polymorphistic resolution for parameter types
 Property getProperty(java.lang.String name)
          finds a property with the given name
 StaticProperty getStaticProperty(java.lang.String name)
          finds a static property with the given name
 java.util.Set<? extends Type> getSuperTypes()
           
 TypeSystem getTypeSystem()
           
 boolean isAbstract()
           
 boolean isAssignableFrom(Type t)
           
 boolean isInstance(java.lang.Object o)
           
 java.lang.Object newInstance()
           
 

Method Detail

getTypeSystem

TypeSystem getTypeSystem()

isAssignableFrom

boolean isAssignableFrom(Type t)

isInstance

boolean isInstance(java.lang.Object o)

isAbstract

boolean isAbstract()

getName

java.lang.String getName()

newInstance

java.lang.Object newInstance()

getSuperTypes

java.util.Set<? extends Type> getSuperTypes()

getStaticProperty

StaticProperty getStaticProperty(java.lang.String name)
finds a static property with the given name

Parameters:
name -
Returns:

getProperty

Property getProperty(java.lang.String name)
finds a property with the given name

Parameters:
name -
Returns:

getOperation

Operation getOperation(java.lang.String name,
                       Type[] parameterTypes)
finds an operation with the given name on the given type with respect to the given parametertypes this method handles polymorphistic resolution for parameter types

Parameters:
type -
name -
paramTypes -
Returns:

getFeature

Callable getFeature(java.lang.String name,
                    Type[] parameterTypes)
finds a feature with the given name on the given type with respect to the given parametertypes this method handles polymorphistic resolution for parameter types

Parameters:
type -
name -
paramTypes -
Returns:

getAllStaticProperties

java.util.Set<? extends StaticProperty> getAllStaticProperties()

getAllProperties

java.util.Set<? extends Property> getAllProperties()

getAllOperations

java.util.Set<? extends Operation> getAllOperations()

getAllFeatures

java.util.Set<? extends Callable> getAllFeatures()

convert

java.lang.Object convert(java.lang.Object src,
                         java.lang.Class<?> targetType)
converts the given Object to an instance of the given Class, if this type is responsible for java objects of the given Class and the given Object

Parameters:
src -
targetType -
Returns:

getDocumentation

java.lang.String getDocumentation()