if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
ResultVariable expression = stateObject.getExpression();
// Select expression
if (stateObject.hasStateObject()) {
stateObject.getStateObject().accept(this);
}
if (exactMatch && (expression != null) && expression.hasSelectExpression()) {
writer.append(SPACE);
}
// 'AS'
if (stateObject.hasAs()) {
if (!exactMatch || (expression == null)) {
writer.append(SPACE);
}
appendIdentifier((expression != null) ? expression.getActualAsIdentifier() : AS, AS);
}
if (exactMatch && (expression != null) && expression.hasSpaceAfterAs()) {
writer.append(SPACE);
}
// Result variable
if (stateObject.hasResultVariable()) {