< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AnnotationTypeFieldWriterImpl.java

Print this page




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.javadoc.internal.doclets.formats.html;
  27 
  28 import java.util.Arrays;
  29 import java.util.List;
  30 
  31 import javax.lang.model.element.Element;
  32 import javax.lang.model.element.ExecutableElement;
  33 import javax.lang.model.element.TypeElement;
  34 import javax.lang.model.type.TypeMirror;
  35 

  36 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlConstants;
  37 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle;
  38 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTag;
  39 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree;
  40 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent;
  41 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeFieldWriter;
  42 import jdk.javadoc.internal.doclets.toolkit.Content;
  43 import jdk.javadoc.internal.doclets.toolkit.MemberSummaryWriter;
  44 
  45 
  46 /**
  47  * Writes annotation type field documentation in HTML format.
  48  *
  49  *  <p><b>This is NOT part of any supported API.
  50  *  If you write code that depends on this, you do so at your own risk.
  51  *  This code and its internal interfaces are subject to change or
  52  *  deletion without notice.</b>
  53  *
  54  * @author Bhavesh Patel
  55  */


 201 
 202     /**
 203      * {@inheritDoc}
 204      */
 205     public String getTableSummary() {
 206         return configuration.getText("doclet.Member_Table_Summary",
 207                 configuration.getText("doclet.Field_Summary"),
 208                 configuration.getText("doclet.fields"));
 209     }
 210 
 211     /**
 212      * {@inheritDoc}
 213      */
 214     public Content getCaption() {
 215         return configuration.getContent("doclet.Fields");
 216     }
 217 
 218     /**
 219      * {@inheritDoc}
 220      */
 221     public List<String> getSummaryTableHeader(Element member) {
 222         List<String> header = Arrays.asList(writer.getModifierTypeHeader(),
 223                 resources.getText("doclet.Fields"), resources.getText("doclet.Description"));
 224         return header;
 225     }
 226 
 227     /**
 228      * {@inheritDoc}
 229      */
 230     public void addSummaryAnchor(TypeElement typeElement, Content memberTree) {
 231         memberTree.addContent(writer.getMarkerAnchor(
 232                 SectionName.ANNOTATION_TYPE_FIELD_SUMMARY));
 233     }
 234 
 235     /**
 236      * {@inheritDoc}
 237      */
 238     public void addInheritedSummaryAnchor(TypeElement typeElement, Content inheritedTree) {
 239     }
 240 
 241     /**
 242      * {@inheritDoc}
 243      */
 244     public void addInheritedSummaryLabel(TypeElement typeElement, Content inheritedTree) {




   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.javadoc.internal.doclets.formats.html;
  27 



  28 import javax.lang.model.element.Element;
  29 import javax.lang.model.element.ExecutableElement;
  30 import javax.lang.model.element.TypeElement;
  31 import javax.lang.model.type.TypeMirror;
  32 
  33 import jdk.javadoc.internal.doclets.formats.html.TableHeader;
  34 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlConstants;
  35 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle;
  36 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTag;
  37 import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree;
  38 import jdk.javadoc.internal.doclets.formats.html.markup.StringContent;
  39 import jdk.javadoc.internal.doclets.toolkit.AnnotationTypeFieldWriter;
  40 import jdk.javadoc.internal.doclets.toolkit.Content;
  41 import jdk.javadoc.internal.doclets.toolkit.MemberSummaryWriter;
  42 
  43 
  44 /**
  45  * Writes annotation type field documentation in HTML format.
  46  *
  47  *  <p><b>This is NOT part of any supported API.
  48  *  If you write code that depends on this, you do so at your own risk.
  49  *  This code and its internal interfaces are subject to change or
  50  *  deletion without notice.</b>
  51  *
  52  * @author Bhavesh Patel
  53  */


 199 
 200     /**
 201      * {@inheritDoc}
 202      */
 203     public String getTableSummary() {
 204         return configuration.getText("doclet.Member_Table_Summary",
 205                 configuration.getText("doclet.Field_Summary"),
 206                 configuration.getText("doclet.fields"));
 207     }
 208 
 209     /**
 210      * {@inheritDoc}
 211      */
 212     public Content getCaption() {
 213         return configuration.getContent("doclet.Fields");
 214     }
 215 
 216     /**
 217      * {@inheritDoc}
 218      */
 219     @Override
 220     public TableHeader getSummaryTableHeader(Element member) {
 221         return new TableHeader(contents.modifierAndTypeLabel, contents.fields,
 222                 contents.descriptionLabel);
 223     }
 224 
 225     /**
 226      * {@inheritDoc}
 227      */
 228     public void addSummaryAnchor(TypeElement typeElement, Content memberTree) {
 229         memberTree.addContent(writer.getMarkerAnchor(
 230                 SectionName.ANNOTATION_TYPE_FIELD_SUMMARY));
 231     }
 232 
 233     /**
 234      * {@inheritDoc}
 235      */
 236     public void addInheritedSummaryAnchor(TypeElement typeElement, Content inheritedTree) {
 237     }
 238 
 239     /**
 240      * {@inheritDoc}
 241      */
 242     public void addInheritedSummaryLabel(TypeElement typeElement, Content inheritedTree) {


< prev index next >