langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/DocEnv.java
changeset 36042 885eb5258cc4
parent 35426 374342e56a56
child 36526 3b41f1c69604
equal deleted inserted replaced
36041:bfcede0994e5 36042:885eb5258cc4
   704                     }
   704                     }
   705                     return false;
   705                     return false;
   706                 }
   706                 }
   707 
   707 
   708                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
   708                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
   709                 public Boolean defaultAction(Element e, Void p) {
       
   710                     if (includedSet.contains(e) || shouldDocument(e)) {
       
   711                         return true;
       
   712                     }
       
   713                     return false;
       
   714                 }
       
   715 
       
   716                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
       
   717                 public Boolean visitPackage(PackageElement e, Void p) {
   709                 public Boolean visitPackage(PackageElement e, Void p) {
   718                     return includedSet.contains(e);
   710                     return includedSet.contains(e);
   719                 }
   711                 }
   720 
   712 
   721                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
   713                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
   722                 public Boolean visitUnknown(Element e, Void p) {
   714                 public Boolean visitUnknown(Element e, Void p) {
   723                     throw new AssertionError("got element: " + e);
   715                     throw new AssertionError("unknown element: " + e);
       
   716                 }
       
   717 
       
   718                 @Override @DefinedBy(Api.LANGUAGE_MODEL)
       
   719                 public Boolean defaultAction(Element e, Void p) {
       
   720                     return visit(e.getEnclosingElement()) && shouldDocument(e);
   724                 }
   721                 }
   725             };
   722             };
   726         }
   723         }
   727         return includedVisitor.visit(e);
   724         return includedVisitor.visit(e);
   728     }
   725     }