65 * @author Robert Field
66 * @author Bhavesh Patel (Modified)
67 */
68 public class AnnotationTypeWriterImpl extends SubWriterHolderWriter
69 implements AnnotationTypeWriter {
70
71 protected TypeElement annotationType;
72
73 protected TypeMirror prev;
74
75 protected TypeMirror next;
76
77 /**
78 * @param configuration the configuration
79 * @param annotationType the annotation type being documented.
80 * @param prevType the previous class that was documented.
81 * @param nextType the next class being documented.
82 */
83 public AnnotationTypeWriterImpl(HtmlConfiguration configuration,
84 TypeElement annotationType, TypeMirror prevType, TypeMirror nextType) {
85 super(configuration, DocPath.forClass(configuration.utils, annotationType));
86 this.annotationType = annotationType;
87 configuration.currentTypeElement = annotationType;
88 this.prev = prevType;
89 this.next = nextType;
90 }
91
92 /**
93 * Get the module link.
94 *
95 * @return a content tree for the module link
96 */
97 @Override
98 protected Content getNavLinkModule() {
99 Content linkContent = getModuleLink(utils.elementUtils.getModuleOf(annotationType),
100 contents.moduleLabel);
101 Content li = HtmlTree.LI(linkContent);
102 return li;
103 }
104
105 /**
|
65 * @author Robert Field
66 * @author Bhavesh Patel (Modified)
67 */
68 public class AnnotationTypeWriterImpl extends SubWriterHolderWriter
69 implements AnnotationTypeWriter {
70
71 protected TypeElement annotationType;
72
73 protected TypeMirror prev;
74
75 protected TypeMirror next;
76
77 /**
78 * @param configuration the configuration
79 * @param annotationType the annotation type being documented.
80 * @param prevType the previous class that was documented.
81 * @param nextType the next class being documented.
82 */
83 public AnnotationTypeWriterImpl(HtmlConfiguration configuration,
84 TypeElement annotationType, TypeMirror prevType, TypeMirror nextType) {
85 super(configuration, configuration.docPaths.forClass(annotationType));
86 this.annotationType = annotationType;
87 configuration.currentTypeElement = annotationType;
88 this.prev = prevType;
89 this.next = nextType;
90 }
91
92 /**
93 * Get the module link.
94 *
95 * @return a content tree for the module link
96 */
97 @Override
98 protected Content getNavLinkModule() {
99 Content linkContent = getModuleLink(utils.elementUtils.getModuleOf(annotationType),
100 contents.moduleLabel);
101 Content li = HtmlTree.LI(linkContent);
102 return li;
103 }
104
105 /**
|