Class InstantiationContextImpl
java.lang.Object
org.cqframework.cql.cql2elm.model.InstantiationContextImpl
- All Implemented Interfaces:
org.hl7.cql.model.InstantiationContext
public class InstantiationContextImpl
extends Object
implements org.hl7.cql.model.InstantiationContext
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiationContextImpl(Map<org.hl7.cql.model.TypeParameter, org.hl7.cql.model.DataType> typeMap, OperatorMap operatorMap, ConversionMap conversionMap, boolean allowPromotionAndDemotion) -
Method Summary
Modifier and TypeMethodDescriptionintIterable<org.hl7.cql.model.IntervalType> getIntervalConversionTargets(org.hl7.cql.model.DataType callType) Iterable<org.hl7.cql.model.ListType> getListConversionTargets(org.hl7.cql.model.DataType callType) Iterable<org.hl7.cql.model.SimpleType> getSimpleConversionTargets(org.hl7.cql.model.DataType callType) org.hl7.cql.model.DataTypeinstantiate(org.hl7.cql.model.TypeParameter parameter) booleanisInstantiable(org.hl7.cql.model.TypeParameter parameter, org.hl7.cql.model.DataType callType)
-
Constructor Details
-
InstantiationContextImpl
public InstantiationContextImpl(Map<org.hl7.cql.model.TypeParameter, org.hl7.cql.model.DataType> typeMap, OperatorMap operatorMap, ConversionMap conversionMap, boolean allowPromotionAndDemotion)
-
-
Method Details
-
getConversionScore
public int getConversionScore() -
isInstantiable
public boolean isInstantiable(org.hl7.cql.model.TypeParameter parameter, org.hl7.cql.model.DataType callType) - Specified by:
isInstantiablein interfaceorg.hl7.cql.model.InstantiationContext
-
instantiate
public org.hl7.cql.model.DataType instantiate(org.hl7.cql.model.TypeParameter parameter) - Specified by:
instantiatein interfaceorg.hl7.cql.model.InstantiationContext
-
getIntervalConversionTargets
public Iterable<org.hl7.cql.model.IntervalType> getIntervalConversionTargets(org.hl7.cql.model.DataType callType) - Specified by:
getIntervalConversionTargetsin interfaceorg.hl7.cql.model.InstantiationContext
-
getListConversionTargets
public Iterable<org.hl7.cql.model.ListType> getListConversionTargets(org.hl7.cql.model.DataType callType) - Specified by:
getListConversionTargetsin interfaceorg.hl7.cql.model.InstantiationContext
-
getSimpleConversionTargets
public Iterable<org.hl7.cql.model.SimpleType> getSimpleConversionTargets(org.hl7.cql.model.DataType callType) - Specified by:
getSimpleConversionTargetsin interfaceorg.hl7.cql.model.InstantiationContext
-