Package org.hl7.cql.model
Class TypeParameter
java.lang.Object
org.hl7.cql.model.DataType
org.hl7.cql.model.TypeParameter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTypeParameter(String identifier) TypeParameter(String identifier, TypeParameter.TypeParameterConstraint constraint, DataType constraintType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()instantiate(InstantiationContext context) booleanbooleanisInstantiable(DataType callType, InstantiationContext context) toString()Methods inherited from class org.hl7.cql.model.DataType
getBaseType, getCommonSuperTypeOf, isCompatibleWith, isSubTypeOf, isSuperTypeOf, toLabel
-
Field Details
-
constraint
-
-
Constructor Details
-
TypeParameter
-
TypeParameter
public TypeParameter(String identifier, TypeParameter.TypeParameterConstraint constraint, DataType constraintType)
-
-
Method Details
-
getIdentifier
-
getConstraint
-
getConstraintType
-
canBind
- Parameters:
callType-- Returns:
- True if the given callType can be bound to this parameter (i.e. it satisfied any constraints defined for the type parameter)
-
hashCode
public int hashCode() -
equals
-
toString
-
isGeneric
public boolean isGeneric() -
isInstantiable
- Specified by:
isInstantiablein classDataType
-
instantiate
- Specified by:
instantiatein classDataType
-