/** * Set the initialization expression of a declared context variable. * @param name The variable name. */ public void setContextVariableExpression(String config, UnparsedExpression exp) { if (config == null && exp instanceof MContextVariable) { variabls.put(exp.getName(), (MContextVariable) exp); } else if (config != null) { MContextVariable var = getContextVariable(exp.getName()); if (var != null) { var.setValue(config, exp); } } }
if (exp != null) cv.setValue(cinfo.getName(), exp);
parseExp(exp, model.getModelInfo().getAllImports(), cl); contextvar.setValue(conf.getName(), exp);
cv.setValue(conf.getName(), exp);