Expression exprCondition;
Expression exprLast;
Statement statement;
public String toString(){
CodeStringBuilder sb=new CodeStringBuilder();
ListExpression le=null;
if(exprCondition!=null && exprCondition.getClass()==ListExpression.class)
le=(ListExpression)exprCondition;
if(declInit!=null){
sb.appendWithTabNewLine("{");
CodeStringBuilder.addTab();
sb.appendWithNewLine(declInit.toString());
}
if(le!=null)
sb.appendWithNewLine(le.getAllExceptLastExpressionString());
sb.appendWithTab("for (");
if(exprInit!=null)
sb.append(((ListExpression)exprInit).getAllExpressionStringCommaSeperated());
sb.append(";");
if(le!=null)
sb.append(le.getLastExpressionString());
sb.append(";");
if(exprLast!=null)
sb.append(((ListExpression)exprLast).getAllExpressionStringCommaSeperated());
sb.appendWithNewLine(")");
if(le!=null && le.isMultipleExpression()){
sb.appendWithTabNewLine("{");
CodeStringBuilder.addTab();
}
if(statement.hasMultipleExpressions()){
sb.appendWithTabNewLine("{");
CodeStringBuilder.addTab();
}
if(statement!=null)
sb.appendWithNewLine(statement);
if(statement.hasMultipleExpressions()){
CodeStringBuilder.removeTab();
sb.appendWithTabNewLine("}");
}
sb.append("\n");
if(le!=null)
sb.appendWithNewLine(le.getAllExceptLastExpressionString());
if(le!=null && le.isMultipleExpression()){
CodeStringBuilder.removeTab();
sb.appendWithTabNewLine("}");
}
if(declInit!=null){
CodeStringBuilder.removeTab();
sb.appendWithTabNewLine("}");
}
return sb.toString();
}