src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/ClassWriter.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, 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

@@ -21,15 +21,16 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package com.sun.tools.doclets.internal.toolkit;
+package jdk.javadoc.internal.doclets.toolkit;
 
 import java.io.*;
-import com.sun.javadoc.*;
 
+import javax.lang.model.element.TypeElement;
+
 /**
  * The interface for writing class output.
  *
  *  <p><b>This is NOT part of any supported API.
  *  If you write code that depends on this, you do so at your own risk.

@@ -200,15 +201,15 @@
      * Close the writer.
      */
     public void close() throws IOException;
 
     /**
-     * Return the classDoc being documented.
+     * Return the TypeElement being documented.
      *
-     * @return the classDoc being documented.
+     * @return the TypeElement being documented.
      */
-    public ClassDoc getClassDoc();
+    public TypeElement getTypeElement();
 
     /**
      * Get the member summary tree.
      *
      * @param memberTree the content tree used to build the summary tree