/** @apilevel internal */ private SimpleSet memberTypes_compute(String name) { SimpleSet set = localTypeDecls(name); if (!set.isEmpty()) return set; for (Iterator outerIter = superinterfacesIterator(); outerIter.hasNext(); ) { TypeDecl typeDecl = (TypeDecl) outerIter.next(); for (Iterator iter = typeDecl.memberTypes(name).iterator(); iter.hasNext(); ) { TypeDecl decl = (TypeDecl) iter.next(); if (!decl.isPrivate()) set = set.add(decl); } } return set; }
/** @apilevel internal */ private SimpleSet memberFields_compute(String name) { SimpleSet fields = localFields(name); if (!fields.isEmpty()) return fields; for (Iterator outerIter = superinterfacesIterator(); outerIter.hasNext(); ) { TypeDecl typeDecl = (TypeDecl) outerIter.next(); for (Iterator iter = typeDecl.memberFields(name).iterator(); iter.hasNext(); ) { FieldDeclaration f = (FieldDeclaration) iter.next(); if (f.accessibleFrom(this) && !f.isPrivate()) { fields = fields.add(f); } } } return fields; }