if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
EncapsulatedIdentificationVariableExpression expression = stateObject.getExpression();
// Identifier
appendIdentifier((expression != null) ? expression.getActualIdentifier() : stateObject.getIdentifier(), stateObject.getIdentifier());
// '('
if (shouldOutput(expression) || expression.hasLeftParenthesis()) {
writer.append(LEFT_PARENTHESIS);
}
// Identification variable
if (stateObject.hasIdentificationVariable()) {
writer.append(stateObject.getIdentificationVariable());
}
// ')'
if (shouldOutput(expression) || expression.hasRightParenthesis()) {
writer.append(RIGHT_PARENTHESIS);
}
}
}