code.append(comment(1, "Generate variable initialization for "
+ "modified parameters"));
Iterator modifiedVariables = _modifiedVariables.iterator();
while (modifiedVariables.hasNext()) {
// SetVariable needs this to be a Variable, not a Parameter.
Variable variable = (Variable) modifiedVariables.next();
NamedObj container = variable.getContainer();
CodeGeneratorHelper containerHelper = (CodeGeneratorHelper) _getHelper(container);
code.append(_INDENT1
+ generateVariableName(variable)
+ " = "
+ containerHelper.getParameterValue(variable.getName(),
variable.getContainer()) + ";" + _eol);
}
}
return code.toString();
}