langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java
changeset 40587 1c355ea550ed
parent 35426 374342e56a56
child 45599 8bc3a019f948
equal deleted inserted replaced
40519:e17429a7e843 40587:1c355ea550ed
    28 import javax.lang.model.element.TypeElement;
    28 import javax.lang.model.element.TypeElement;
    29 
    29 
    30 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeOptionalMemberWriter;
    30 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeOptionalMemberWriter;
    31 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeRequiredMemberWriter;
    31 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeRequiredMemberWriter;
    32 import jdk.javadoc.internal.doclets.toolkit.Content;
    32 import jdk.javadoc.internal.doclets.toolkit.Content;
       
    33 import jdk.javadoc.internal.doclets.toolkit.DocletException;
    33 import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap;
    34 import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap;
    34 
    35 
    35 
    36 
    36 /**
    37 /**
    37  * Builds documentation for optional annotation type members.
    38  * Builds documentation for optional annotation type members.
    65      * Construct a new AnnotationTypeMemberBuilder.
    66      * Construct a new AnnotationTypeMemberBuilder.
    66      *
    67      *
    67      * @param context  the build context.
    68      * @param context  the build context.
    68      * @param typeElement the class whose members are being documented.
    69      * @param typeElement the class whose members are being documented.
    69      * @param writer the doclet specific writer.
    70      * @param writer the doclet specific writer.
       
    71      * @return the new AnnotationTypeMemberBuilder
    70      */
    72      */
    71     public static AnnotationTypeOptionalMemberBuilder getInstance(
    73     public static AnnotationTypeOptionalMemberBuilder getInstance(
    72             Context context, TypeElement typeElement,
    74             Context context, TypeElement typeElement,
    73             AnnotationTypeOptionalMemberWriter writer) {
    75             AnnotationTypeOptionalMemberWriter writer) {
    74         return new AnnotationTypeOptionalMemberBuilder(context,
    76         return new AnnotationTypeOptionalMemberBuilder(context,
    86     /**
    88     /**
    87      * Build the annotation type optional member documentation.
    89      * Build the annotation type optional member documentation.
    88      *
    90      *
    89      * @param node the XML element that specifies which components to document
    91      * @param node the XML element that specifies which components to document
    90      * @param memberDetailsTree the content tree to which the documentation will be added
    92      * @param memberDetailsTree the content tree to which the documentation will be added
       
    93      * @throws DocletException if there is a problem while building the documentation
    91      */
    94      */
    92     public void buildAnnotationTypeOptionalMember(XMLNode node, Content memberDetailsTree) {
    95     public void buildAnnotationTypeOptionalMember(XMLNode node, Content memberDetailsTree)
       
    96                 throws DocletException {
    93         buildAnnotationTypeMember(node, memberDetailsTree);
    97         buildAnnotationTypeMember(node, memberDetailsTree);
    94     }
    98     }
    95 
    99 
    96     /**
   100     /**
    97      * Build the default value for this optional member.
   101      * Build the default value for this optional member.