langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MemberSummaryBuilder.java
changeset 1789 7ac8c0815000
parent 1264 076a3cde30d5
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
   168          * @param classDoc the {@link ClassDoc} we want to check.
   168          * @param classDoc the {@link ClassDoc} we want to check.
   169          * @param type the type of members to return.
   169          * @param type the type of members to return.
   170          * @return a list of methods that will be documented.
   170          * @return a list of methods that will be documented.
   171          * @see VisibleMemberMap
   171          * @see VisibleMemberMap
   172          */
   172          */
   173         public List members(int type) {
   173         public List<ProgramElementDoc> members(int type) {
   174                 return visibleMemberMaps[type].getLeafClassMembers(configuration);
   174                 return visibleMemberMaps[type].getLeafClassMembers(configuration);
   175         }
   175         }
   176 
   176 
   177         /**
   177         /**
   178          * {@inheritDoc}
   178          * {@inheritDoc}
   179          */
   179          */
   180         public void invokeMethod(
   180         public void invokeMethod(
   181                 String methodName,
   181                 String methodName,
   182                 Class[] paramClasses,
   182                 Class<?>[] paramClasses,
   183                 Object[] params)
   183                 Object[] params)
   184                 throws Exception {
   184                 throws Exception {
   185                 if (DEBUG) {
   185                 if (DEBUG) {
   186                         configuration.root.printError(
   186                         configuration.root.printError(
   187                                 "DEBUG: " + this.getClass().getName() + "." + methodName);
   187                                 "DEBUG: " + this.getClass().getName() + "." + methodName);
   337      * @param writer           the writer for this member summary.
   337      * @param writer           the writer for this member summary.
   338      * @param visibleMemberMap the map for the members to document.
   338      * @param visibleMemberMap the map for the members to document.
   339      */
   339      */
   340         private void buildInheritedSummary(MemberSummaryWriter writer,
   340         private void buildInheritedSummary(MemberSummaryWriter writer,
   341             VisibleMemberMap visibleMemberMap) {
   341             VisibleMemberMap visibleMemberMap) {
   342         for (Iterator iter = visibleMemberMap.getVisibleClassesList().iterator();
   342         for (Iterator<ClassDoc> iter = visibleMemberMap.getVisibleClassesList().iterator();
   343                 iter.hasNext();) {
   343                 iter.hasNext();) {
   344             ClassDoc inhclass = (ClassDoc) (iter.next());
   344             ClassDoc inhclass = iter.next();
   345             if (! (inhclass.isPublic() ||
   345             if (! (inhclass.isPublic() ||
   346                 Util.isLinkable(inhclass, configuration))) {
   346                 Util.isLinkable(inhclass, configuration))) {
   347                 continue;
   347                 continue;
   348             }
   348             }
   349             if (inhclass == classDoc) {
   349             if (inhclass == classDoc) {