src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeOptionalMemberBuilder.java
changeset 49879 601277b1d582
parent 47216 71c04702a3d5
equal deleted inserted replaced
49878:2422d4e027b0 49879:601277b1d582
     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
    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.DocletException;
    34 import jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberMap;
       
    35 
    34 
       
    35 import static jdk.javadoc.internal.doclets.toolkit.util.VisibleMemberTable.Kind.*;
    36 
    36 
    37 /**
    37 /**
    38  * Builds documentation for optional annotation type members.
    38  * Builds documentation for optional annotation type members.
    39  *
    39  *
    40  *  <p><b>This is NOT part of any supported API.
    40  *  <p><b>This is NOT part of any supported API.
    55      * @param writer the doclet specific writer.
    55      * @param writer the doclet specific writer.
    56      */
    56      */
    57     private AnnotationTypeOptionalMemberBuilder(Context context,
    57     private AnnotationTypeOptionalMemberBuilder(Context context,
    58             TypeElement typeElement,
    58             TypeElement typeElement,
    59             AnnotationTypeOptionalMemberWriter writer) {
    59             AnnotationTypeOptionalMemberWriter writer) {
    60         super(context, typeElement, writer,
    60         super(context, typeElement, writer, ANNOTATION_TYPE_MEMBER_OPTIONAL);
    61                 VisibleMemberMap.Kind.ANNOTATION_TYPE_MEMBER_OPTIONAL);
       
    62     }
    61     }
    63 
    62 
    64 
    63 
    65     /**
    64     /**
    66      * Construct a new AnnotationTypeMemberBuilder.
    65      * Construct a new AnnotationTypeMemberBuilder.