langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/EnumConstantBuilder.java
changeset 1789 7ac8c0815000
parent 1264 076a3cde30d5
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
   118         /**
   118         /**
   119          * {@inheritDoc}
   119          * {@inheritDoc}
   120          */
   120          */
   121         public void invokeMethod(
   121         public void invokeMethod(
   122                 String methodName,
   122                 String methodName,
   123                 Class[] paramClasses,
   123                 Class<?>[] paramClasses,
   124                 Object[] params)
   124                 Object[] params)
   125                 throws Exception {
   125                 throws Exception {
   126                 if (DEBUG) {
   126                 if (DEBUG) {
   127                         configuration.root.printError(
   127                         configuration.root.printError(
   128                                 "DEBUG: " + this.getClass().getName() + "." + methodName);
   128                                 "DEBUG: " + this.getClass().getName() + "." + methodName);
   137          * generation.
   137          * generation.
   138          *
   138          *
   139          * @param classDoc the {@link ClassDoc} we want to check.
   139          * @param classDoc the {@link ClassDoc} we want to check.
   140          * @return a list of enum constants that will be documented.
   140          * @return a list of enum constants that will be documented.
   141          */
   141          */
   142         public List members(ClassDoc classDoc) {
   142         public List<ProgramElementDoc> members(ClassDoc classDoc) {
   143                 return visibleMemberMap.getMembersFor(classDoc);
   143                 return visibleMemberMap.getMembersFor(classDoc);
   144         }
   144         }
   145 
   145 
   146         /**
   146         /**
   147          * Returns the visible member map for the enum constants of this class.
   147          * Returns the visible member map for the enum constants of this class.
   163          * Build the enum constant documentation.
   163          * Build the enum constant documentation.
   164          *
   164          *
   165          * @param elements the XML elements that specify how to construct this
   165          * @param elements the XML elements that specify how to construct this
   166          *                documentation.
   166          *                documentation.
   167          */
   167          */
   168         public void buildEnumConstant(List elements) {
   168         public void buildEnumConstant(List<?> elements) {
   169                 if (writer == null) {
   169                 if (writer == null) {
   170                         return;
   170                         return;
   171                 }
   171                 }
   172                 for (currentEnumConstantsIndex = 0;
   172                 for (currentEnumConstantsIndex = 0;
   173                         currentEnumConstantsIndex < enumConstants.size();
   173                         currentEnumConstantsIndex < enumConstants.size();