if (genDecl) {
String output = data.getOutput(phase, var1, var2, var2b, null, not);
if (statementList != null) {
NewStatement newStatement = new NewStatement("Optional", name);
newStatement.setData(false, cs, output);
statementList.add(new Statement(phase, baseDecl, "Optional", name, newStatement));
}
}
if (genStat) {
var2 = "";
var2b = "";
AddStatement addStatement = valpar.getStatement(phase, name, false, null, var1, var2, var2b, data);
if (addStatement != null) {
if (statementList != null) {
statementList.add(new Statement(phase, false, name, addStatement));
}
} else {
if (valpar.isElementList()) {
valpar.generate(phase, false, false, true, false, null, name, var1, var2, var2b, data, statementList);
} else {
String elementName = data.addNewVarname(name);
valpar.generate(phase, false, true, true, false, null, elementName, var1, null, null, data, statementList);
if (statementList != null) {
addStatement = new AddStatement(elementName, new RefStatement(elementName));
statementList.add(new Statement(phase, false, name, addStatement));
}
}
}
}
}