public interface ITypeSystem
Modifier and Type | Interface and Description |
---|---|
static class |
ITypeSystem.NullTypeSystem
An empty implementation of
ITypeSystem that can be used by the abstract pattern language module. |
Modifier and Type | Method and Description |
---|---|
IInputKey |
extractColumnDescriptor(RelationType type,
int columnIndex)
Extracts the model-specific column type of the given index from a RelationType declaration
|
IInputKey |
extractTypeDescriptor(Type type)
Extracts the model-specific types from a Type declaration.
|
boolean |
isConformant(IInputKey expectedType,
IInputKey actualType)
Decides whether the second type is compatible with the first one
|
boolean |
isConformToRelationColumn(IInputKey relationType,
int columnIndex,
IInputKey columnType)
Decides whether the reference can have a selected type at its given column.
|
org.eclipse.xtext.common.types.JvmTypeReference |
toJvmTypeReference(IInputKey type,
org.eclipse.emf.ecore.EObject context)
Creates a type reference for model inference from a selected type.
|
java.lang.String |
typeString(IInputKey type)
Converts a type object to a user-visible description string.
|
boolean isConformant(IInputKey expectedType, IInputKey actualType)
boolean isConformToRelationColumn(IInputKey relationType, int columnIndex, IInputKey columnType)
IInputKey extractTypeDescriptor(Type type)
type
- either the Type
or the RelationType
instanceIInputKey extractColumnDescriptor(RelationType type, int columnIndex)
type
- org.eclipse.xtext.common.types.JvmTypeReference toJvmTypeReference(IInputKey type, org.eclipse.emf.ecore.EObject context)
type
- context
-