Package org.hl7.cql.model
Class TypeParameter
- java.lang.Object
-
- org.hl7.cql.model.DataType
-
- org.hl7.cql.model.TypeParameter
-
public class TypeParameter extends DataType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeParameter.TypeParameterConstraint
-
Field Summary
Fields Modifier and Type Field Description TypeParameter.TypeParameterConstraintconstraint
-
Constructor Summary
Constructors Constructor Description TypeParameter(java.lang.String identifier)TypeParameter(java.lang.String identifier, TypeParameter.TypeParameterConstraint constraint, DataType constraintType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBind(DataType callType)booleanequals(java.lang.Object o)TypeParameter.TypeParameterConstraintgetConstraint()DataTypegetConstraintType()java.lang.StringgetIdentifier()inthashCode()DataTypeinstantiate(InstantiationContext context)booleanisGeneric()booleanisInstantiable(DataType callType, InstantiationContext context)java.lang.StringtoString()-
Methods inherited from class org.hl7.cql.model.DataType
getBaseType, getCommonSuperTypeOf, isCompatibleWith, isSubTypeOf, isSuperTypeOf, toLabel
-
-
-
-
Field Detail
-
constraint
public TypeParameter.TypeParameterConstraint constraint
-
-
Constructor Detail
-
TypeParameter
public TypeParameter(java.lang.String identifier)
-
TypeParameter
public TypeParameter(java.lang.String identifier, TypeParameter.TypeParameterConstraint constraint, DataType constraintType)
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
-
getConstraint
public TypeParameter.TypeParameterConstraint getConstraint()
-
getConstraintType
public DataType getConstraintType()
-
canBind
public boolean canBind(DataType callType)
- 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()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isInstantiable
public boolean isInstantiable(DataType callType, InstantiationContext context)
- Specified by:
isInstantiablein classDataType
-
instantiate
public DataType instantiate(InstantiationContext context)
- Specified by:
instantiatein classDataType
-
-