diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotatedType.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotatedType.java deleted file mode 100644 index adc028cc511..00000000000 --- a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotatedType.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * 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.javadoc; - - -/** - * Represents an annotated type. - * For example: - *
- * {@code @NonNull String}
- * {@code @Positive int}
- *
- *
- * @author Mahmood Ali
- * @since 1.8
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
-@Deprecated(since="9", forRemoval=true)
-@SuppressWarnings("removal")
-public interface AnnotatedType extends Type {
-
- /**
- * Returns the annotations associated with this type.
- * @return the annotations associated with this type
- */
- AnnotationDesc[] annotations();
-
- /**
- * Returns the underlying type.
- * @return the underlying type
- */
- Type underlyingType();
-}
diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationDesc.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationDesc.java
deleted file mode 100644
index 4098d4c531a..00000000000
--- a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationDesc.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * 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
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * 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.javadoc;
-
-
-/**
- * Represents an annotation.
- * An annotation associates a value with each element of an annotation type.
- *
- * @author Scott Seligman
- * @since 1.5
- *
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
-@Deprecated(since="9", forRemoval=true)
-@SuppressWarnings("removal")
-public interface AnnotationDesc {
-
- /**
- * Returns the annotation type of this annotation.
- *
- * @return the annotation type of this annotation.
- */
- AnnotationTypeDoc annotationType();
-
- /**
- * Returns this annotation's elements and their values.
- * Only those explicitly present in the annotation are
- * included, not those assuming their default values.
- * Returns an empty array if there are none.
- *
- * @return this annotation's elements and their values.
- */
- ElementValuePair[] elementValues();
-
- /**
- * Check for the synthesized bit on the annotation.
- *
- * @return true if the annotation is synthesized.
- */
- boolean isSynthesized();
-
- /**
- * Represents an association between an annotation type element
- * and one of its values.
- *
- * @author Scott Seligman
- * @since 1.5
- *
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
- @Deprecated(since="9", forRemoval=true)
- public interface ElementValuePair {
-
- /**
- * Returns the annotation type element.
- *
- * @return the annotation type element.
- */
- AnnotationTypeElementDoc element();
-
- /**
- * Returns the value associated with the annotation type element.
- *
- * @return the value associated with the annotation type element.
- */
- AnnotationValue value();
- }
-}
diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeDoc.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeDoc.java
deleted file mode 100644
index c2399f8e829..00000000000
--- a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeDoc.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * 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.javadoc;
-
-
-/**
- * Represents an annotation type.
- *
- * @author Scott Seligman
- * @since 1.5
- *
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
-@Deprecated(since="9", forRemoval=true)
-@SuppressWarnings("removal")
-public interface AnnotationTypeDoc extends ClassDoc {
-
- /**
- * Returns the elements of this annotation type.
- * Returns an empty array if there are none.
- *
- * @return the elements of this annotation type.
- */
- AnnotationTypeElementDoc[] elements();
-}
diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeElementDoc.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeElementDoc.java
deleted file mode 100644
index 584446c2d80..00000000000
--- a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationTypeElementDoc.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * 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.javadoc;
-
-
-/**
- * Represents an element of an annotation type.
- *
- * @author Scott Seligman
- * @since 1.5
- *
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
-@Deprecated(since="9", forRemoval=true)
-@SuppressWarnings("removal")
-public interface AnnotationTypeElementDoc extends MethodDoc {
-
- /**
- * Returns the default value of this element.
- * Returns null if this element has no default.
- *
- * @return the default value of this element.
- */
- AnnotationValue defaultValue();
-}
diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationValue.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationValue.java
deleted file mode 100644
index 0a669b1db1f..00000000000
--- a/src/jdk.javadoc/share/classes/com/sun/javadoc/AnnotationValue.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * 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
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * 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.javadoc;
-
-
-/**
- * Represents a value of an annotation type element.
- *
- * @author Scott Seligman
- * @since 1.5
- *
- * @deprecated
- * The declarations in this package have been superseded by those
- * in the package {@code jdk.javadoc.doclet}.
- * For more information, see the Migration Guide in the documentation for that package.
- */
-@Deprecated(since="9", forRemoval=true)
-@SuppressWarnings("removal")
-public interface AnnotationValue {
-
- /**
- * Returns the value.
- * The type of the returned object is one of the following:
- *
- * Return either a list of default fields documented by
- * {@code serial} tag
- * or return a single {@code FieldDoc} for
- * {@code serialPersistentField} member.
- * There should be a {@code serialField} tag for
- * each Serializable field defined by an {@code ObjectStreamField}
- * array component of {@code serialPersistentField}.
- *
- * @return an array of {@code FieldDoc} objects for the Serializable
- * fields of this class or interface.
- *
- * @see #definesSerializableFields()
- * @see SerialFieldTag
- */
- FieldDoc[] serializableFields();
-
- /**
- * Return true if Serializable fields are explicitly defined with
- * the special class member {@code serialPersistentFields}.
- *
- * @return true if Serializable fields are explicitly defined with
- * the special class member {@code serialPersistentFields}.
- *
- * @see #serializableFields()
- * @see SerialFieldTag
- */
- boolean definesSerializableFields();
-
- /**
- * Return the superclass of this class. Return null if this is an
- * interface.
- *
- *
This method cannot accommodate certain generic type constructs. - * The {@code superclassType} method should be used instead. - * - * @return the ClassDoc for the superclass of this class, null if - * there is no superclass. - * @see #superclassType - */ - ClassDoc superclass(); - - /** - * Return the superclass of this class. Return null if this is an - * interface. A superclass is represented by either a - * {@code ClassDoc} or a {@code ParametrizedType}. - * - * @return the superclass of this class, or null if there is no superclass. - * @since 1.5 - */ - Type superclassType(); - - /** - * Test whether this class is a subclass of the specified class. - * If this is an interface, return false for all classes except - * {@code java.lang.Object} (we must keep this unexpected - * behavior for compatibility reasons). - * - * @param cd the candidate superclass. - * @return true if cd is a superclass of this class. - */ - boolean subclassOf(ClassDoc cd); - - /** - * Return interfaces implemented by this class or interfaces extended - * by this interface. Includes only directly-declared interfaces, not - * inherited interfaces. - * Return an empty array if there are no interfaces. - * - *
This method cannot accommodate certain generic type constructs. - * The {@code interfaceTypes} method should be used instead. - * - * @return an array of ClassDoc objects representing the interfaces. - * @see #interfaceTypes - */ - ClassDoc[] interfaces(); - - /** - * Return interfaces implemented by this class or interfaces extended - * by this interface. Includes only directly-declared interfaces, not - * inherited interfaces. - * Return an empty array if there are no interfaces. - * - * @return an array of interfaces, each represented by a - * {@code ClassDoc} or a {@code ParametrizedType}. - * @since 1.5 - */ - Type[] interfaceTypes(); - - /** - * Return the formal type parameters of this class or interface. - * Return an empty array if there are none. - * - * @return the formal type parameters of this class or interface. - * @since 1.5 - */ - TypeVariable[] typeParameters(); - - /** - * Return the type parameter tags of this class or interface. - * Return an empty array if there are none. - * - * @return the type parameter tags of this class or interface. - * @since 1.5 - */ - ParamTag[] typeParamTags(); - - /** - * Return - * included - * fields in this class or interface. - * Excludes enum constants if this is an enum type. - * - * @return an array of FieldDoc objects representing the included - * fields in this class or interface. - */ - FieldDoc[] fields(); - - /** - * Return fields in this class or interface, filtered to the specified - * access - * modifier option. - * Excludes enum constants if this is an enum type. - * - * @param filter Specify true to filter according to the specified access - * modifier option. - * Specify false to include all fields regardless of - * access modifier option. - * @return an array of FieldDoc objects representing the included - * fields in this class or interface. - */ - FieldDoc[] fields(boolean filter); - - /** - * Return the enum constants if this is an enum type. - * Return an empty array if there are no enum constants, or if - * this is not an enum type. - * - * @return the enum constants if this is an enum type. - */ - FieldDoc[] enumConstants(); - - /** - * Return - * included - * methods in this class or interface. - * Same as {@code methods(true)}. - * - * @return an array of MethodDoc objects representing the included - * methods in this class or interface. Does not include - * constructors or annotation type elements. - */ - MethodDoc[] methods(); - - /** - * Return methods in this class or interface, filtered to the specified - * access - * modifier option. Does not include constructors or annotation - * type elements. - * - * @param filter Specify true to filter according to the specified access - * modifier option. - * Specify false to include all methods regardless of - * access modifier option. - * - * @return an array of MethodDoc objects representing the included - * methods in this class or interface. - */ - MethodDoc[] methods(boolean filter); - - /** - * Return - * included - * constructors in this class. An array containing the default - * no-arg constructor is returned if no other constructors exist. - * Return empty array if this is an interface. - * - * @return an array of ConstructorDoc objects representing the included - * constructors in this class. - */ - ConstructorDoc[] constructors(); - - /** - * Return constructors in this class, filtered to the specified - * access - * modifier option. Return an array containing the default - * no-arg constructor if no other constructors exist. - * - * @param filter Specify true to filter according to the specified access - * modifier option. - * Specify false to include all constructors regardless of - * access modifier option. - * @return an array of ConstructorDoc objects representing the included - * constructors in this class. - */ - ConstructorDoc[] constructors(boolean filter); - - - /** - * Return - * included - * nested classes and interfaces within this class or interface. - * This includes both static and non-static nested classes. - * (This method should have been named {@code nestedClasses()}, - * as inner classes are technically non-static.) Anonymous and local classes - * or interfaces are not included. - * - * @return an array of ClassDoc objects representing the included classes - * and interfaces defined in this class or interface. - */ - ClassDoc[] innerClasses(); - - /** - * Return nested classes and interfaces within this class or interface - * filtered to the specified - * access - * modifier option. - * This includes both static and non-static nested classes. - * Anonymous and local classes are not included. - * - * @param filter Specify true to filter according to the specified access - * modifier option. - * Specify false to include all nested classes regardless of - * access modifier option. - * @return a filtered array of ClassDoc objects representing the included - * classes and interfaces defined in this class or interface. - */ - ClassDoc[] innerClasses(boolean filter); - - /** - * Find the specified class or interface within the context of this class doc. - * Search order: 1) qualified name, 2) nested in this class or interface, - * 3) in this package, 4) in the class imports, 5) in the package imports. - * Return the ClassDoc if found, null if not found. - * @param className Specify the class name to find as a String. - * @return the ClassDoc if found, null if not found. - */ - ClassDoc findClass(String className); - - /** - * Get the list of classes and interfaces declared as imported. - * These are called "single-type-import declarations" in - * The Java™ Language Specification. - * - * @return an array of ClassDoc representing the imported classes. - * - * @deprecated Import declarations are implementation details that - * should not be exposed here. In addition, not all imported - * classes are imported through single-type-import declarations. - */ - @Deprecated(since="9", forRemoval=true) - ClassDoc[] importedClasses(); - - /** - * Get the list of packages declared as imported. - * These are called "type-import-on-demand declarations" in - * The Java™ Language Specification. - * - * @return an array of PackageDoc representing the imported packages. - * - * @deprecated Import declarations are implementation details that - * should not be exposed here. In addition, this method's - * return type does not allow for all type-import-on-demand - * declarations to be returned. - */ - @Deprecated(since="9", forRemoval=true) - PackageDoc[] importedPackages(); -} diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/ConstructorDoc.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/ConstructorDoc.java deleted file mode 100644 index 8fc1c003b08..00000000000 --- a/src/jdk.javadoc/share/classes/com/sun/javadoc/ConstructorDoc.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 1998, 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 - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * 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.javadoc; - -/** - * Represents a constructor of a java class. - * - * @since 1.2 - * @author Robert Field - * - * @deprecated - * The declarations in this package have been superseded by those - * in the package {@code jdk.javadoc.doclet}. - * For more information, see the Migration Guide in the documentation for that package. - */ -@Deprecated(since="9", forRemoval=true) -@SuppressWarnings("removal") -public interface ConstructorDoc extends ExecutableMemberDoc { -} diff --git a/src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java b/src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java deleted file mode 100644 index 34310015fba..00000000000 --- a/src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright (c) 1998, 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 - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * 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.javadoc; - -import java.text.BreakIterator; -import java.util.Locale; - -/** - * Represents Java language constructs (package, class, constructor, - * method, field) which have comments and have been processed by this - * run of javadoc. All Doc objects are unique, that is, they - * are == comparable. - * - * @since 1.2 - * @author Robert Field - * @author Scott Seligman (generics, enums, annotations) - * - * @deprecated - * The declarations in this package have been superseded by those - * in the package {@code jdk.javadoc.doclet}. - * For more information, see the Migration Guide in the documentation for that package. - */ -@Deprecated(since="9", forRemoval=true) -@SuppressWarnings("removal") -public interface Doc extends Comparable