private StatementListNode generateStyleProperties(StatementListNode statementList, Iterator<StyleProperty> iterator)
{
while (iterator.hasNext())
{
StyleProperty styleProperty = iterator.next();
//this.${style.name} = ${style.value};
/*
ThisExpressionNode base = nodeFactory.thisExpression(-1);
IdentifierNode identifier = nodeFactory.identifier(styleProperty.getName());
ArgumentListNode argumentList = nodeFactory.argumentList(null, );
SetExpressionNode selector = nodeFactory.setExpression(identifier,
argumentList, false);
selector.setRValue(false);
MemberExpressionNode memberExpression = nodeFactory.memberExpression(base, selector);
ListNode list = nodeFactory.list(null, memberExpression);
ExpressionStatementNode expressionStatement = nodeFactory.expressionStatement(list);
*/
// This is a temporary hack. We should be able to
// generate Nodes directly for a StyleProperty.
String text = ("this." + styleProperty.getName() + " = " + styleProperty.getValue());
int lineNumber = styleProperty.getLineNumber();
List<Node> nodeList =
AbstractSyntaxTreeUtil.parseExpression(context, configNamespaces, text,
lineNumber, generateDocComments);
assert nodeList.size() == 1;