< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/TagletWriter.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package jdk.javadoc.internal.doclets.toolkit.taglets;
 
+import java.util.EnumSet;
 import java.util.List;
 
 import javax.lang.model.element.Element;
 import javax.lang.model.element.VariableElement;
 import javax.lang.model.type.TypeMirror;

@@ -150,10 +151,19 @@
      * @return the output of the see tags.
      */
     protected abstract Content seeTagOutput(Element holder, List<? extends DocTree> seeTags);
 
     /**
+     * Return the accessor tag output.
+     *
+     * @param holder
+     * @param tags the accessor tags
+     * @return the output of the accessor tag.
+     */
+    protected abstract Content accessorTagOutput(Element holder, List<? extends DocTree> tags);
+
+    /**
      * Return the output for a simple tag.
      *
      * @param element
      * @param simpleTags the array of simple tags.
      * @param header

@@ -257,11 +267,11 @@
                     currentOutput = taglet.getTagletOutput(element, tags.get(0), writer);
                 }
             }
             if (currentOutput != null) {
                 tagletManager.seenCustomTag(taglet.getName());
-                output.add(currentOutput);
+                output.addContent(currentOutput);
             }
         }
     }
     /**
      * Given an inline tag, return its output.
< prev index next >