Package org.hl7.cql.model
Class DataType
- java.lang.Object
-
- org.hl7.cql.model.DataType
-
- Direct Known Subclasses:
ChoiceType,ClassType,IntervalType,ListType,SimpleType,TupleType,TypeParameter
public abstract class DataType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleTypeANY
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DataTypegetBaseType()DataTypegetCommonSuperTypeOf(DataType other)abstract DataTypeinstantiate(InstantiationContext context)booleanisCompatibleWith(DataType other)abstract booleanisGeneric()abstract booleanisInstantiable(DataType callType, InstantiationContext context)booleanisSubTypeOf(DataType other)booleanisSuperTypeOf(DataType other)java.lang.StringtoLabel()
-
-
-
Field Detail
-
ANY
public static final SimpleType ANY
-
-
Constructor Detail
-
DataType
public DataType()
-
DataType
public DataType(DataType baseType)
-
-
Method Detail
-
getBaseType
public DataType getBaseType()
-
toLabel
public java.lang.String toLabel()
-
isSubTypeOf
public boolean isSubTypeOf(DataType other)
-
isSuperTypeOf
public boolean isSuperTypeOf(DataType other)
-
getCommonSuperTypeOf
public DataType getCommonSuperTypeOf(DataType other)
- Parameters:
other-- Returns:
- The first supertype of this type that is also a supertype of other
-
isCompatibleWith
public boolean isCompatibleWith(DataType other)
-
isGeneric
public abstract boolean isGeneric()
-
isInstantiable
public abstract boolean isInstantiable(DataType callType, InstantiationContext context)
-
instantiate
public abstract DataType instantiate(InstantiationContext context)
-
-