langtools/src/share/classes/com/sun/javadoc/ClassDoc.java
author poonam
Tue, 26 Feb 2013 08:58:20 -0800
changeset 15808 c75f11af1033
parent 14951 8d9ea42e4aba
child 23136 aa8958a4c8f4
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
14951
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
     2
 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.javadoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
 * Represents a java class or interface and provides access to
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
 * information about the class, the class's comment and tags, and the
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
 * members of the class.  A ClassDoc only exists if it was
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * processed in this run of javadoc.  References to classes
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * which may or may not have been processed in this run are
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * referred to using Type (which can be converted to ClassDoc,
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * if possible).
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @see Type
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 * @author Kaiyang Liu (original)
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
 * @author Robert Field (rewrite)
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
public interface ClassDoc extends ProgramElementDoc, Type {
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
     * Return true if this class is abstract.  Return true
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
     * for all interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    boolean isAbstract();
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
     * Return true if this class implements or interface extends
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     * <code>java.io.Serializable</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     * Since <code>java.io.Externalizable</code> extends
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
     * <code>java.io.Serializable</code>,
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
     * Externalizable objects are also Serializable.
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
    boolean isSerializable();
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     * Return true if this class implements or interface extends
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
     * <code>java.io.Externalizable</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    boolean isExternalizable();
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    /**
14951
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    69
     * Return true if this class can be used as a target type of a lambda expression
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    70
     * or method reference.
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    71
     */
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    72
    boolean isFunctionalInterface();
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    73
8d9ea42e4aba 8004814: javadoc should be able to detect default methods
vromero
parents: 9303
diff changeset
    74
    /**
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     * Return the serialization methods for this class or
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
     * @return an array of MethodDoc objects that represents
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
     *         the serialization methods for this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
    MethodDoc[] serializationMethods();
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
     * Return the Serializable fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * Return either a list of default fields documented by
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     * <code>serial</code> tag<br>
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     * or return a single <code>FieldDoc</code> for
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     * <code>serialPersistentField</code> member.
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
     * There should be a <code>serialField</code> tag for
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
     * each Serializable field defined by an <code>ObjectStreamField</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
     * array component of <code>serialPersistentField</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
     * @return an array of <code>FieldDoc</code> objects for the Serializable
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
     *         fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
     * @see #definesSerializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
    FieldDoc[] serializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     *  Return true if Serializable fields are explicitly defined with
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
     *  the special class member <code>serialPersistentFields</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     * @see #serializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
    boolean definesSerializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
     * <p> <i>This method cannot accommodate certain generic type constructs.
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
     * The <code>superclassType</code> method should be used instead.</i>
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     * @return the ClassDoc for the superclass of this class, null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     *         there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
     * @see #superclassType
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
    ClassDoc superclass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     * interface.  A superclass is represented by either a
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
     * <code>ClassDoc</code> or a <code>ParametrizedType</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
     * @return the superclass of this class, or null if there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
    Type superclassType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
     * Test whether this class is a subclass of the specified class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
     * If this is an interface, return false for all classes except
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
     * <code>java.lang.Object</code> (we must keep this unexpected
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
     * behavior for compatibility reasons).
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
     * @param cd the candidate superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     * @return true if cd is a superclass of this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    boolean subclassOf(ClassDoc cd);
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
     * <p> <i>This method cannot accommodate certain generic type constructs.
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     * The <code>interfaceTypes</code> method should be used instead.</i>
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * @return an array of ClassDoc objects representing the interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * @see #interfaceTypes
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
    ClassDoc[] interfaces();
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
     * @return an array of interfaces, each represented by a
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     *         <code>ClassDoc</code> or a <code>ParametrizedType</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
    Type[] interfaceTypes();
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
     * Return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
     * @return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
    TypeVariable[] typeParameters();
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     * Return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
     * @return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
    ParamTag[] typeParamTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     * fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
     * @return an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     *         fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
    FieldDoc[] fields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * Return fields in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     *               Specify false to include all fields regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     * @return       an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
     *               fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
    FieldDoc[] fields(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     * Return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     * Return an empty array if there are no enum constants, or if
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     * this is not an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
     * @return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
    FieldDoc[] enumConstants();
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
     * methods in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
     * Same as <code>methods(true)</code>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     * @return an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     *         methods in this class or interface.  Does not include
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     *         constructors or annotation type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
    MethodDoc[] methods();
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     * Return methods in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     * modifier option</a>.  Does not include constructors or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
     *          type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
     *               Specify false to include all methods regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     * @return       an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
     *               methods in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    MethodDoc[] methods(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
     * constructors in this class.  An array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     * no-arg constructor is returned if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     * Return empty array if this is an interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     * @return an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
     *         constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
    ConstructorDoc[] constructors();
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
     * Return constructors in this class, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
     * modifier option</a>.  Return an array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
     * no-arg constructor if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
     *               Specify false to include all constructors regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
     * @return       an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
     *               constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
    ConstructorDoc[] constructors(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
     * nested classes and interfaces within this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
     * This includes both static and non-static nested classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
     * (This method should have been named <code>nestedClasses()</code>,
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
     * as inner classes are technically non-static.)  Anonymous and local classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
     * or interfaces are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
     * @return an array of ClassDoc objects representing the included classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
     *         and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   291
    ClassDoc[] innerClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
     * Return nested classes and interfaces within this class or interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
     * filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
     * This includes both static and non-static nested classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
     * Anonymous and local classes are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
     *               Specify false to include all nested classes regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
     * @return       a filtered array of ClassDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
     *               classes and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
    ClassDoc[] innerClasses(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
     * Find the specified class or interface within the context of this class doc.
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
     * Search order: 1) qualified name, 2) nested in this class or interface,
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
     * 3) in this package, 4) in the class imports, 5) in the package imports.
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
     * Return the ClassDoc if found, null if not found.
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
    ClassDoc findClass(String className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
     * Get the list of classes and interfaces declared as imported.
9303
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   320
     * These are called "single-type-import declarations" in
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   321
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   322
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   323
     * @return an array of ClassDoc representing the imported classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
     *          should not be exposed here.  In addition, not all imported
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
     *          classes are imported through single-type-import declarations.
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   329
    @Deprecated
06bc494ca11e Initial load
duke
parents:
diff changeset
   330
    ClassDoc[] importedClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
     * Get the list of packages declared as imported.
9303
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   334
     * These are called "type-import-on-demand declarations" in
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   335
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
     * @return an array of PackageDoc representing the imported packages.
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
     *          should not be exposed here.  In addition, this method's
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
     *          return type does not allow for all type-import-on-demand
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
     *          declarations to be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
    @Deprecated
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
    PackageDoc[] importedPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
}