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 Object
  • Field Details

  • Constructor Details

    • DataType

      public DataType()
    • DataType

      public DataType(DataType baseType)
  • Method Details

    • getBaseType

      public DataType getBaseType()
    • toLabel

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