Пример #1
0
 private LayerMemberSets collectPartialMethods() {
   Set<MethodDecl> partialMethods = new HashSet<MethodDecl>();
   Set<BodyDecl> otherMembers = new HashSet<BodyDecl>();
   for (BodyDecl decl : this.layerDecl.getBodyDeclList()) {
     if ((decl instanceof MethodDecl)) {
       MethodDecl layerMethod = (MethodDecl) decl;
       if (layerMethod.isPartialMethod()) {
         partialMethods.add(layerMethod);
       } else {
         layerMethod.setModifiers(this.gen.createPublicModifierFor(layerMethod));
         otherMembers.add(decl);
       }
     } else otherMembers.add(decl);
   }
   return new LayerMemberSets(partialMethods, otherMembers);
 }