langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/UserTaglet.java
equal
deleted
inserted
replaced
130 /** |
130 /** |
131 * {@inheritDoc} |
131 * {@inheritDoc} |
132 */ |
132 */ |
133 public Content getTagletOutput(Element element, DocTree tag, TagletWriter writer){ |
133 public Content getTagletOutput(Element element, DocTree tag, TagletWriter writer){ |
134 Content output = writer.getOutputInstance(); |
134 Content output = writer.getOutputInstance(); |
135 output.addContent(new RawHtml(userTaglet.toString(Collections.singletonList(tag)))); |
135 output.addContent(new RawHtml(userTaglet.toString(Collections.singletonList(tag), element))); |
136 return output; |
136 return output; |
137 } |
137 } |
138 |
138 |
139 /** |
139 /** |
140 * {@inheritDoc} |
140 * {@inheritDoc} |
142 public Content getTagletOutput(Element holder, TagletWriter writer) { |
142 public Content getTagletOutput(Element holder, TagletWriter writer) { |
143 Content output = writer.getOutputInstance(); |
143 Content output = writer.getOutputInstance(); |
144 Utils utils = writer.configuration().utils; |
144 Utils utils = writer.configuration().utils; |
145 List<? extends DocTree> tags = utils.getBlockTags(holder, getName()); |
145 List<? extends DocTree> tags = utils.getBlockTags(holder, getName()); |
146 if (!tags.isEmpty()) { |
146 if (!tags.isEmpty()) { |
147 String tagString = userTaglet.toString(tags); |
147 String tagString = userTaglet.toString(tags, holder); |
148 if (tagString != null) { |
148 if (tagString != null) { |
149 output.addContent(new RawHtml(tagString)); |
149 output.addContent(new RawHtml(tagString)); |
150 } |
150 } |
151 } |
151 } |
152 return output; |
152 return output; |