use of org.yakindu.sct.model.sgen.ParameterTypes in project statecharts by Yakindu.
the class SGenJavaValidator method checkParameterValueType.
@Check
public void checkParameterValueType(final FeatureParameterValue parameterValue) {
if (parameterValue == null || parameterValue.getExpression() == null)
return;
InferenceResult valueResult = inferrer.infer(parameterValue.getExpression());
ParameterTypes parameterType = parameterValue.getParameter().getParameterType();
typeValidator.assertAssignable(InferenceResult.from(mapType(parameterType)), valueResult, null, this);
}
use of org.yakindu.sct.model.sgen.ParameterTypes in project statecharts by Yakindu.
the class FeatureParameterImpl method setParameterType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParameterType(ParameterTypes newParameterType) {
ParameterTypes oldParameterType = parameterType;
parameterType = newParameterType == null ? PARAMETER_TYPE_EDEFAULT : newParameterType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SGenPackage.FEATURE_PARAMETER__PARAMETER_TYPE, oldParameterType, parameterType));
}
Aggregations