src/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java

changeset 2035
a2a5ad0853ed
parent 1606
ccbe7ffdd867
child 2525
2eb010b6cb22
equal deleted inserted replaced
2034:ac6ec071c2b2 2035:a2a5ad0853ed
100 public AnnotationTypeWriter getAnnotationTypeWriter( 100 public AnnotationTypeWriter getAnnotationTypeWriter(
101 AnnotationTypeDoc annotationType, Type prevType, Type nextType) 101 AnnotationTypeDoc annotationType, Type prevType, Type nextType)
102 throws Exception { 102 throws Exception {
103 return new AnnotationTypeWriterImpl(configuration, 103 return new AnnotationTypeWriterImpl(configuration,
104 annotationType, prevType, nextType); 104 annotationType, prevType, nextType);
105 }
106
107 /**
108 * {@inheritDoc}
109 */
110 public AnnotationTypeFieldWriter
111 getAnnotationTypeFieldWriter(AnnotationTypeWriter annotationTypeWriter) throws Exception {
112 return new AnnotationTypeFieldWriterImpl(
113 (SubWriterHolderWriter) annotationTypeWriter,
114 annotationTypeWriter.getAnnotationTypeDoc());
105 } 115 }
106 116
107 /** 117 /**
108 * {@inheritDoc} 118 * {@inheritDoc}
109 */ 119 */
200 */ 210 */
201 public MemberSummaryWriter getMemberSummaryWriter( 211 public MemberSummaryWriter getMemberSummaryWriter(
202 AnnotationTypeWriter annotationTypeWriter, int memberType) 212 AnnotationTypeWriter annotationTypeWriter, int memberType)
203 throws Exception { 213 throws Exception {
204 switch (memberType) { 214 switch (memberType) {
215 case VisibleMemberMap.ANNOTATION_TYPE_FIELDS:
216 return (AnnotationTypeFieldWriterImpl)
217 getAnnotationTypeFieldWriter(annotationTypeWriter);
205 case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL: 218 case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_OPTIONAL:
206 return (AnnotationTypeOptionalMemberWriterImpl) 219 return (AnnotationTypeOptionalMemberWriterImpl)
207 getAnnotationTypeOptionalMemberWriter(annotationTypeWriter); 220 getAnnotationTypeOptionalMemberWriter(annotationTypeWriter);
208 case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED: 221 case VisibleMemberMap.ANNOTATION_TYPE_MEMBER_REQUIRED:
209 return (AnnotationTypeRequiredMemberWriterImpl) 222 return (AnnotationTypeRequiredMemberWriterImpl)

mercurial