protected EnumConstant parseEnumConstant ( FieldDoc fieldDoc ) { EnumConstant enumConstant = objectFactory . createEnumConstant ( ) ; enumConstant . setName ( fieldDoc . name ( ) ) ; String comment = fieldDoc . commentText ( ) ; if ( comment . length ( ) > 0 ) { enumConstant . setComment ( comment ) ; } for ( AnnotationDesc annotationDesc : fieldDoc . annotations ( ) ) { enumConstant . getAnnotation ( ) . add ( parseAnnotationDesc ( annotationDesc , fieldDoc . qualifiedName ( ) ) ) ; } for ( Tag tag : fieldDoc . tags ( ) ) { enumConstant . getTag ( ) . add ( parseTag ( tag ) ) ; } return enumConstant ; }
Parses an enum type definition