/** @return */ private void toStringTree(final AstNode n, final StringBuffer sb) { for (int i = 0; i < n.getDepth(); i++) { sb.append(" "); } sb.append(n.toString()); sb.append("\n"); for (final AstNode child : n.getChilds()) { toStringTree(child, sb); } }