Appends the source strings for all the children to the given StringBuilder.

@param sb The StringBuilder to which to append the children's source strings.
191629
public void appendSourceStringForChildren(StringBuilder sb) {
    for (N child : children) {
      sb.append(child.toSourceString());
    }
  }
93907
public final static StringBuilder buildLine(StringBuilder sb, Object[] elements) {
		sb.append(' ');
		String str;
		boolean notFirst = false;
		for(Object o : elements) {
			if(o!=null) {
				str = o.toString();
				
				if(str.length()>0) {
					if(notFirst && shouldAddSpace(str,true) && shouldAddSpace(sb,false)) {
						sb.append(' ');
					} else {
						notFirst=true;
					}
					sb.append(str);
				}
			}
		}
		return sb;
	}
1080446
private void toStringDataDescription(final StringBuilder sb) {
        if (getRedefines() != null) {
            sb.append(',');
            sb.append("redefines:" + getRedefines());
        }
        if (isBlankWhenZero()) {
            sb.append(',');
            sb.append("isBlankWhenZero:" + isBlankWhenZero());
        }
        if (isExternal()) {
            sb.append(',');
            sb.append("isExternal:" + isExternal());
        }
        if (isGlobal()) {
            sb.append(',');
            sb.append("isGlobal:" + isGlobal());
        }
        if (isGroupUsageNational()) {
            sb.append(',');
            sb.append("groupUsageNational:" + isGroupUsageNational());
        }
        if (getMaxOccurs() > 0) {
            if (getMinOccurs() > -1) {
                sb.append(',');
                sb.append("minOccurs:" + getMinOccurs());
            }
            sb.append(',');
            sb.append("maxOccurs:" + getMaxOccurs());
            if (getDependingOn() != null) {
                sb.append(',');
                sb.append("dependingOn:" + getDependingOn());
            }
            if (getIndexes().size() > 0) {
                toStringList(sb, getIndexes(), "indexes");
            }
            if (getAscendingKeys().size() > 0) {
                toStringList(sb, getAscendingKeys(), "ascendingKeys");
            }
            if (getDescendingKeys().size() > 0) {
                toStringList(sb, getDescendingKeys(), "descendingKeys");
            }
        }
        if (isSign()) {
            sb.append(',');
            sb.append("isSign:" + isSign());
            sb.append(',');
            sb.append("isSignLeading:" + isSignLeading());
            sb.append(',');
            sb.append("isSignSeparate:" + isSignSeparate());
        }
        if (isSynchronized()) {
            sb.append(',');
            sb.append("isSynchronized:" + isSynchronized());
        }
        if (getUsage() != null) {
            sb.append(',');
            sb.append("usage:" + getUsage());
        }
        if (getChildren().size() == 0) {
            if (isJustifiedRight()) {
                sb.append(',');
                sb.append("isJustifiedRight:" + isJustifiedRight());
            }
            if (getPicture() != null) {
                sb.append(',');
                sb.append("picture:" + '\"' + getPicture() + '\"');
            }
        }
        if (getValue() != null && getValue().length() > 0) {
            sb.append(',');
            sb.append("value:" + getValue());
        }
        if (getDateFormat() != null) {
            sb.append(',');
            sb.append("dateFormat:" + getDateFormat());
        }
        if (getChildren().size() > 0) {
            toStringList(sb, getChildren(), "children");
        }
    }
1175430
private static void appendValue(StringBuilder sb, String item, boolean valid, long value) {
        sb.append(item).append('=');
        if (valid) {
            sb.append(value);
        } else {
            sb.append('?');
        }
    }
416299
public static <T> void join(Collection<T> collection, String delimiter, StringBuilder sb) {
		join(collection, delimiter, sb, new JoinCallback<T>() {
			public void handle(StringBuilder sb, T value) {
				sb.append(value);
			}
		});
	}
911486
private static void append(StringBuilder sb, int val, int width) {
    String s = Integer.toString(val);
    for (int i = s.length(); i < width; i++) sb.append('0');
    sb.append(s);
  }
978166
private void appendVarArgsString(StringBuilder sb, JSType paramType, boolean forAnnotations) {
    sb.append("...");
    paramType.appendAsNonNull(sb, forAnnotations);
  }
5463
protected static void appendTo(@Nonnull StringBuilder buf, @Nonnull Map<? extends String, ? extends Object> values) {
        for (Map.Entry<? extends String, ? extends Object> e : values.entrySet()) {
            if (buf.length() > 0)
                buf.append(",");
            buf.append(e.getKey());
            Object value = e.getValue();
            if (value != null)
                buf.append('=').append(value);
        }
    }
468713
public static void append(StringBuilder buf, String s, int offset, int length) {
        synchronized (buf) {
            int end = offset + length;
            for (int i = offset; i < end; i++) {
                if (i >= s.length())
                    break;
                buf.append(s.charAt(i));
            }
        }
    }
151680
public StringBuffer append(InputStream source, StringBuffer buffer) throws IOException
	{
		Reader _reader = FileTools.createReaderForInputStream(source, getEncoding());
		return append(_reader, buffer);
	}
350554
protected void appendStringType(StringBuilder sb, FieldType fieldType, int fieldWidth) {
		if (isVarcharFieldWidthSupported()) {
			sb.append("VARCHAR(").append(fieldWidth).append(')');
		} else {
			sb.append("VARCHAR");
		}
	}
686606
private void appendDesc(StringBuilder sb)
    {
        String srcId;

        if (mSystemId != null) {
            sb.append("[row,col,system-id]: ");
            srcId = mSystemId;
        } else if (mPublicId != null) {
            sb.append("[row,col,public-id]: ");
            srcId = mPublicId;
        } else {
            sb.append("[row,col {unknown-source}]: ");
            srcId = null;
        }
        sb.append('[');
        sb.append(mRow);
        sb.append(',');
        sb.append(mCol);

        // Uncomment for testing, to see the char offset:
        //sb.append(" #").append(mCharOffset);
        //sb.append("{").append(System.identityHashCode(this)).append("}");

        if (srcId != null) {
            sb.append(',');
            sb.append('"');
            sb.append(srcId);
            sb.append('"');
        }
        sb.append(']');
        if (mContext != null) {
            StringUtil.appendLF(sb);
            sb.append(" from ");
            mContext.appendDesc(sb);
        }
    }
393724
public void append(XMLString s) {
        append(s.ch, s.offset, s.length);
    }
1254530
public void appendToFsb(org.apache.xml.utils.FastStringBuffer fsb)
  {
    fsb.append(str());
  }
1175498
protected static boolean appendParams(StringBuilder SB, Object optParam, List<String> finishedParams, boolean alreadyAppended) {
		if (optParam != null) {
			if (optParam instanceof String) {
				List<String> nameValuePairs=StringUtility.splitString((String)optParam, '&');
				int len=nameValuePairs.size();
				for(int i=0;i<len;i++) {
					SB.append(alreadyAppended?'&':'?');
					String S=nameValuePairs.get(i);
					int pos=S.indexOf('=');
					if(pos==-1) {
						SB.append(S);
						alreadyAppended=true;
					} else {
						String name=S.substring(0, pos);
						if(!finishedParams.contains(name)) {
							SB.append(S);
							finishedParams.add(name);
							alreadyAppended=true;
						}
					}
				}
			} else if (optParam instanceof String[]) {
				String[] SA = (String[]) optParam;
				int len = SA.length;
				for (int c = 0; c < len; c += 2) {
					String name=SA[c];
					if(!finishedParams.contains(name)) {
						SB.append(alreadyAppended?'&':'?').append(name).append('=').append(SA[c + 1]);
						finishedParams.add(name);
						alreadyAppended=true;
					}
				}
			} else throw new IllegalArgumentException("Unsupported type for optParam: " + optParam.getClass().getName());
		}
		return alreadyAppended;
	}
723854
private void toStringTree(String indent, StringBuffer sb) {
		sb.append(toString());
		if (children != null) {
			for (Entry<String, DepTreeNode> entry : children.entrySet()) {
				entry.getValue().toStringTree(indent + "\t", sb); //$NON-NLS-1$
			}
		}
	}
1287179
void appendHtmlReport(StringBuilder sb) {
    sb.append("<table class=\"storage\">");
    sb.append("<thead><tr><td>JN</td><td>Status</td></tr></thead>\n");
    for (AsyncLogger l : loggers) {
      sb.append("<tr>");
      sb.append("<td>" + JspUtil.escapeXml(l.toString()) + "</td>");
      sb.append("<td>");
      l.appendHtmlReport(sb);
      sb.append("</td></tr>\n");
    }
    sb.append("</table>");
  }