langtools/test/com/sun/javadoc/testNestedInlineTag/testtaglets/UnderlineTaglet.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2016, 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. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 package testtaglets; |
24 package testtaglets; |
25 |
25 |
|
26 import java.lang.reflect.Layer; |
|
27 import java.lang.reflect.Module; |
|
28 import java.util.*; |
|
29 |
|
30 import com.sun.javadoc.*; |
|
31 |
26 import com.sun.tools.doclets.internal.toolkit.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
27 import com.sun.tools.doclets.internal.toolkit.taglets.*; |
33 import com.sun.tools.doclets.internal.toolkit.taglets.*; |
28 import com.sun.tools.doclets.internal.toolkit.util.*; |
34 import com.sun.tools.doclets.internal.toolkit.util.*; |
29 |
|
30 import com.sun.javadoc.*; |
|
31 import java.util.*; |
|
32 |
35 |
33 |
36 |
34 /** |
37 /** |
35 * An inline Taglet representing {@underline} |
38 * An inline Taglet representing {@underline} |
36 * |
39 * |
62 inlineTags.add(new TextTag(tag.holder(), "<u>")); |
65 inlineTags.add(new TextTag(tag.holder(), "<u>")); |
63 inlineTags.addAll(Arrays.asList(tag.inlineTags())); |
66 inlineTags.addAll(Arrays.asList(tag.inlineTags())); |
64 inlineTags.add(new TextTag(tag.holder(), "</u>")); |
67 inlineTags.add(new TextTag(tag.holder(), "</u>")); |
65 return writer.commentTagsToOutput(tag, (Tag[]) inlineTags.toArray(new Tag[] {})); |
68 return writer.commentTagsToOutput(tag, (Tag[]) inlineTags.toArray(new Tag[] {})); |
66 } |
69 } |
67 |
|
68 } |
70 } |