added listFunctions()

This commit is contained in:
stefanp 2002-11-22 11:37:07 +00:00
parent 63f3faf811
commit 5bd8b44ee7

View file

@ -61,27 +61,15 @@ public class DocApplication extends DocDirElement {
} }
} }
public DocElement[] listFunctions () {
// FIXME: function to retrieve all functions across all prototypes still to be done Vector allFunctions = new Vector ();
for (Iterator i = children.values ().iterator (); i.hasNext ();) {
// public DocFunction[] listFunctions() { DocElement proto = (DocElement) i.next ();
// return listFunctions(-1); allFunctions.addAll (proto.children.values ());
// } }
// Collections.sort (allFunctions, new DocComparator (DocComparator.BY_NAME, this));
// public DocFunction[] listFunctions(int type) { return (DocElement[]) allFunctions.toArray (new DocElement[allFunctions.size ()]);
// Vector funcVec = new Vector(); }
// for ( int i=0; i<prototypes.length; i++ ) {
// DocFunction[] tmp = prototypes[i].listFunctions();
// for ( int j=0; j<tmp.length; j++ ) {
// if ( type==-1 || tmp[j].getType()==type )
// funcVec.addElement(tmp[j]);
// }
// }
// DocFunction[] funcArr = (DocFunction[])funcVec.toArray(new DocFunction[funcVec.size()]);
// Arrays.sort(funcArr,new DocComparator(DocComparator.BY_NAME,this));
// return funcArr;
// }
//
/** /**