class NameAnalyzer.JsName {
/**
* Output the node as a string
*
* @return Node as a string
*/
@Override
public String toString() {
StringBuilder out = new StringBuilder();
out.append(name);
if (prototypeNames.size() > 0) {
out.append(" (CLASS)\n");
out.append(" - FUNCTIONS: ");
Iterator<String> pIter = prototypeNames.iterator();
while (pIter.hasNext()) {
out.append(pIter.next());
if (pIter.hasNext()) {
out.append(", ");
}
}
}
return out.toString();
}
}