presenter.startElement("functions");
for (int i=0; i<libraryList.size(); i++) {
FunctionLibrary lib = (FunctionLibrary)libraryList.get(i);
if (lib instanceof ExecutableFunctionLibrary) {
for (Iterator f = ((ExecutableFunctionLibrary)lib).iterateFunctions(); f.hasNext();) {
UserFunction func = (UserFunction)f.next();
presenter.startElement("function");
presenter.emitAttribute("name", func.getFunctionName().getDisplayName());
presenter.emitAttribute("line", func.getLineNumber()+"");
presenter.emitAttribute("module", func.getSystemId());
func.getBody().explain(presenter);
presenter.endElement();
}
}
}
presenter.endElement();