Definition lookup(String name, int numParams, Class type) {     for (int i = size() - 1; i > -1; i--) { Definition ld = (Definition) elementAt(i);   Definition d = ld.lookup(name, numParams, type);  if (d != null) {   return d; } }   return null;
Definition lookup(String name, Class type) { return lookup(name, -1, type);
    Definition lookup(String name, int numParams, Class type) {        // unfortunately, the enumeration of a stack returns it        // in the reverse order in which we want to traverse it...        // So we must walk manually...        for (int i = size() - 1; i > -1; i--) {            Definition ld = (Definition) elementAt(i);            // System.out.println("JavaStack:looking in "+ld.getName());            Definition d = ld.lookup(name, numParams, type);            if (d != null) {                // System.out.println("JavaStack.lookup returning "+d+" type="+type);                return d;            }        }        // System.out.println("JavaStack.lookup returning null");        return null;    }