The property code generator should generate getter methods for property constants.
An example of the need for these is in Aadl2Validator, in the methods classifiersFoundInSupported* methods, where the value of the relevant property constant is retrieved and the values checked to make sure the references items exist.
I'm trying to get rid of the use of GetProperties methods, and right now there is no suitable replacement for the existing code, which all have a from like
PropertyConstant matchesPropertyConstant = GetProperties.lookupPropertyConstant(connection,
AadlProject.SUPPORTED_CLASSIFIER_COMPLEMENT_MATCHES);
if (matchesPropertyConstant == null) {
return false;
}
PropertyExpression constantValue = matchesPropertyConstant.getConstantValue();
if (!(constantValue instanceof ListValue)) {
return false;
}
The property code generator should generate getter methods for property constants.
An example of the need for these is in
Aadl2Validator, in the methodsclassifiersFoundInSupported*methods, where the value of the relevant property constant is retrieved and the values checked to make sure the references items exist.I'm trying to get rid of the use of
GetPropertiesmethods, and right now there is no suitable replacement for the existing code, which all have a from like