124 } 125 doclintOpts.add(opt); 126 } 127 128 if (!msgOptionSeen) { 129 doclintOpts.add(DocLint.XMSGS_OPTION); 130 } 131 132 String sep = ""; 133 StringBuilder customTags = new StringBuilder(); 134 for (String customTag : customTagNames) { 135 customTags.append(sep); 136 customTags.append(customTag); 137 sep = DocLint.SEPARATOR; 138 } 139 doclintOpts.add(DocLint.XCUSTOM_TAGS_PREFIX + customTags.toString()); 140 doclintOpts.add(DocLint.XHTML_VERSION_PREFIX + "html5"); 141 142 JavacTask t = BasicJavacTask.instance(toolEnv.context); 143 doclint = new DocLint(); 144 // standard doclet normally generates H1, H2 145 doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); 146 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); 147 } 148 149 // TODO: fix this up correctly 150 public boolean haveDocLint() { 151 return (doclint == null); 152 } 153 154 /* 155 * TODO: This method exists because of a bug in javac which does not 156 * handle "@deprecated tag in package-info.java", when this issue 157 * is fixed this method and its uses must be jettisoned. 158 */ 159 public boolean isDeprecated0(Element e) { 160 if (!utils.getDeprecatedTrees(e).isEmpty()) { 161 return true; 162 } 163 JavacTypes jctypes = ((DocEnvImpl)configuration.docEnv).toolEnv.typeutils; 164 TypeMirror deprecatedType = utils.getDeprecatedType(); 165 for (AnnotationMirror anno : e.getAnnotationMirrors()) { | 124 } 125 doclintOpts.add(opt); 126 } 127 128 if (!msgOptionSeen) { 129 doclintOpts.add(DocLint.XMSGS_OPTION); 130 } 131 132 String sep = ""; 133 StringBuilder customTags = new StringBuilder(); 134 for (String customTag : customTagNames) { 135 customTags.append(sep); 136 customTags.append(customTag); 137 sep = DocLint.SEPARATOR; 138 } 139 doclintOpts.add(DocLint.XCUSTOM_TAGS_PREFIX + customTags.toString()); 140 doclintOpts.add(DocLint.XHTML_VERSION_PREFIX + "html5"); 141 142 JavacTask t = BasicJavacTask.instance(toolEnv.context); 143 doclint = new DocLint(); 144 doclint.init(t, doclintOpts.toArray(new String[doclintOpts.size()]), false); 145 } 146 147 // TODO: fix this up correctly 148 public boolean haveDocLint() { 149 return (doclint == null); 150 } 151 152 /* 153 * TODO: This method exists because of a bug in javac which does not 154 * handle "@deprecated tag in package-info.java", when this issue 155 * is fixed this method and its uses must be jettisoned. 156 */ 157 public boolean isDeprecated0(Element e) { 158 if (!utils.getDeprecatedTrees(e).isEmpty()) { 159 return true; 160 } 161 JavacTypes jctypes = ((DocEnvImpl)configuration.docEnv).toolEnv.typeutils; 162 TypeMirror deprecatedType = utils.getDeprecatedType(); 163 for (AnnotationMirror anno : e.getAnnotationMirrors()) { |