+ int t;
+ for(t=0;t<classes->hashsize;t++) {
+ dictentry_t*e = classes->slots[t];
+ while(e) {
+ dictentry_t*next = e->next;
+ classinfo_t*i = (classinfo_t*)e->key;
+ printf("%s.%s\n", i->package, i->name);
+ e = e->next;
+ }
+ }
+}
+
+memberinfo_t* registry_findmember(classinfo_t*cls, const char*name, char recursive)
+{
+ if(!recursive) {
+ return (memberinfo_t*)dict_lookup(&cls->members, name);
+ }
+ /* look at classes directly extended by this class */
+ memberinfo_t*m = 0;
+ classinfo_t*s = cls;
+ while(s) {
+ m = (memberinfo_t*)dict_lookup(&s->members, name);
+ if(m) return m;
+ s = s->superclass;
+ }
+ /* look at interfaces, and parent interfaces */
+ int t=0;
+ while(cls->interfaces[t]) {
+ classinfo_t*s = cls->interfaces[t];
+ while(s) {
+ m = (memberinfo_t*)dict_lookup(&s->members, name);
+ if(m) return m;
+ s = s->superclass;
+ }
+ t++;
+ }
+ return 0;
+