src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, 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 jdk.javadoc.internal.doclets.formats.html; |
26 package jdk.javadoc.internal.doclets.formats.html; |
27 |
27 |
28 import jdk.javadoc.internal.doclets.formats.html.markup.Table; |
28 import jdk.javadoc.internal.doclets.formats.html.markup.Table; |
29 |
|
30 import java.util.Arrays; |
|
31 import java.util.List; |
|
32 |
29 |
33 import javax.lang.model.element.Element; |
30 import javax.lang.model.element.Element; |
34 import javax.lang.model.element.ExecutableElement; |
31 import javax.lang.model.element.ExecutableElement; |
35 import javax.lang.model.element.TypeElement; |
32 import javax.lang.model.element.TypeElement; |
36 import javax.lang.model.type.TypeMirror; |
33 import javax.lang.model.type.TypeMirror; |
306 /** |
303 /** |
307 * {@inheritDoc} |
304 * {@inheritDoc} |
308 */ |
305 */ |
309 protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { |
306 protected Content getNavSummaryLink(TypeElement typeElement, boolean link) { |
310 if (link) { |
307 if (link) { |
311 return Links.createLink( |
308 return links.createLink( |
312 SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY, |
309 SectionName.ANNOTATION_TYPE_REQUIRED_ELEMENT_SUMMARY, |
313 contents.navAnnotationTypeRequiredMember); |
310 contents.navAnnotationTypeRequiredMember); |
314 } else { |
311 } else { |
315 return contents.navAnnotationTypeRequiredMember; |
312 return contents.navAnnotationTypeRequiredMember; |
316 } |
313 } |
319 /** |
316 /** |
320 * {@inheritDoc} |
317 * {@inheritDoc} |
321 */ |
318 */ |
322 protected void addNavDetailLink(boolean link, Content liNav) { |
319 protected void addNavDetailLink(boolean link, Content liNav) { |
323 if (link) { |
320 if (link) { |
324 liNav.addContent(Links.createLink( |
321 liNav.addContent(links.createLink( |
325 SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL, |
322 SectionName.ANNOTATION_TYPE_ELEMENT_DETAIL, |
326 contents.navAnnotationTypeMember)); |
323 contents.navAnnotationTypeMember)); |
327 } else { |
324 } else { |
328 liNav.addContent(contents.navAnnotationTypeMember); |
325 liNav.addContent(contents.navAnnotationTypeMember); |
329 } |
326 } |