src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java

changeset 1735
8ea30d59ac41
parent 1410
bfec2a1cc869
child 1736
74cd21f2c2fe
equal deleted inserted replaced
1734:8dd528992c15 1735:8ea30d59ac41
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
245 public TagletOutput throwsTagOutput(ThrowsTag throwsTag) { 245 public TagletOutput throwsTagOutput(ThrowsTag throwsTag) {
246 String result = DocletConstants.NL + "<dd>"; 246 String result = DocletConstants.NL + "<dd>";
247 result += throwsTag.exceptionType() == null ? 247 result += throwsTag.exceptionType() == null ?
248 htmlWriter.codeText(throwsTag.exceptionName()) : 248 htmlWriter.codeText(throwsTag.exceptionName()) :
249 htmlWriter.codeText( 249 htmlWriter.codeText(
250 htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_MEMBER, 250 htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
251 throwsTag.exceptionType()))); 251 throwsTag.exceptionType())));
252 TagletOutput text = new TagletOutputImpl( 252 TagletOutput text = new TagletOutputImpl(
253 htmlWriter.commentTagsToString(throwsTag, null, 253 htmlWriter.commentTagsToString(throwsTag, null,
254 throwsTag.inlineTags(), false)); 254 throwsTag.inlineTags(), false));
255 if (text != null && text.toString().length() > 0) { 255 if (text != null && text.toString().length() > 0) {
263 * {@inheritDoc} 263 * {@inheritDoc}
264 */ 264 */
265 public TagletOutput throwsTagOutput(Type throwsType) { 265 public TagletOutput throwsTagOutput(Type throwsType) {
266 return new TagletOutputImpl(DocletConstants.NL + "<dd>" + 266 return new TagletOutputImpl(DocletConstants.NL + "<dd>" +
267 htmlWriter.codeText(htmlWriter.getLink( 267 htmlWriter.codeText(htmlWriter.getLink(
268 new LinkInfoImpl(configuration, LinkInfoImpl.CONTEXT_MEMBER, throwsType))) + "</dd>"); 268 new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER, throwsType))) + "</dd>");
269 } 269 }
270 270
271 /** 271 /**
272 * {@inheritDoc} 272 * {@inheritDoc}
273 */ 273 */
274 public TagletOutput valueTagOutput(FieldDoc field, String constantVal, 274 public TagletOutput valueTagOutput(FieldDoc field, String constantVal,
275 boolean includeLink) { 275 boolean includeLink) {
276 return new TagletOutputImpl(includeLink ? 276 return new TagletOutputImpl(includeLink ?
277 htmlWriter.getDocLink(LinkInfoImpl.CONTEXT_VALUE_TAG, field, 277 htmlWriter.getDocLink(LinkInfoImpl.Kind.VALUE_TAG, field,
278 constantVal, false) : constantVal); 278 constantVal, false) : constantVal);
279 } 279 }
280 280
281 /** 281 /**
282 * {@inheritDoc} 282 * {@inheritDoc}

mercurial