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 |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.doclets.internal.toolkit.taglets; |
26 package com.sun.tools.doclets.internal.toolkit.taglets; |
27 |
27 |
28 import com.sun.javadoc.*; |
28 import com.sun.javadoc.*; |
|
29 import com.sun.tools.doclets.formats.html.markup.RawHtml; |
|
30 import com.sun.tools.doclets.internal.toolkit.Content; |
29 |
31 |
30 /** |
32 /** |
31 * This taglet acts as a wrapper to enable |
33 * This taglet acts as a wrapper to enable |
32 * {@link com.sun.tools.doclets.Taglet} type taglets to work |
34 * {@link com.sun.tools.doclets.Taglet} type taglets to work |
33 * with the current version of Javadoc. |
35 * with the current version of Javadoc. |
113 } |
115 } |
114 |
116 |
115 /** |
117 /** |
116 * {@inheritDoc} |
118 * {@inheritDoc} |
117 */ |
119 */ |
118 public TagletOutput getTagletOutput(Tag tag, TagletWriter writer) |
120 public Content getTagletOutput(Tag tag, TagletWriter writer) |
119 throws IllegalArgumentException { |
121 throws IllegalArgumentException { |
120 TagletOutput output = writer.getOutputInstance(); |
122 Content output = writer.getOutputInstance(); |
121 output.setOutput(legacyTaglet.toString(tag)); |
123 output.addContent(new RawHtml(legacyTaglet.toString(tag))); |
122 return output; |
124 return output; |
123 } |
125 } |
124 |
126 |
125 /** |
127 /** |
126 * {@inheritDoc} |
128 * {@inheritDoc} |
127 */ |
129 */ |
128 public TagletOutput getTagletOutput(Doc holder, TagletWriter writer) |
130 public Content getTagletOutput(Doc holder, TagletWriter writer) |
129 throws IllegalArgumentException { |
131 throws IllegalArgumentException { |
130 TagletOutput output = writer.getOutputInstance(); |
132 Content output = writer.getOutputInstance(); |
131 output.setOutput(legacyTaglet.toString(holder.tags(getName()))); |
133 output.addContent(new RawHtml(legacyTaglet.toString(holder.tags(getName())))); |
132 return output; |
134 return output; |
133 } |
135 } |
134 } |
136 } |