* @param name
* @return
* @throws WinkBuildException
*/
public Object jsFunction_getDeclarationsList(final String name) throws WinkBuildException {
final ScriptObject so = getScriptObjectByName(name);
final StringBuffer sb = new StringBuffer();
if (so != null) {
sb.append(so.toString()).append("\n");
final List<ScriptObject> exts = so.getExtensions();
for (final ScriptObject ext : exts) {
sb.append("\t->").append(ext).append("\n");
}
} else {
throw new WinkBuildException("getDeclarationsList failed : duplicate not found");