langtools/src/jdk.compiler/share/classes/com/sun/source/doctree/DocTreeVisitor.java
author ksrini
Sun, 10 Apr 2016 08:41:00 -0700
changeset 37009 476d8d615222
parent 34916 16043fc1d90b
child 42831 feff6f296019
permissions -rw-r--r--
8073100: [javadoc] Provide an ability to suppress document generation for specific elements. Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     1
/*
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
     2
 * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     4
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    10
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    15
 * accompanied this code).
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    16
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    20
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    23
 * questions.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    24
 */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    25
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    26
package com.sun.source.doctree;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    27
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    28
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    29
/**
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    30
 * A visitor of trees, in the style of the visitor design pattern.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    31
 * Classes implementing this interface are used to operate
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    32
 * on a tree when the kind of tree is unknown at compile time.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    33
 * When a visitor is passed to an tree's {@link DocTree#accept
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    34
 * accept} method, the <tt>visit<i>XYZ</i></tt> method most applicable
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    35
 * to that tree is invoked.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    36
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    37
 * <p> Classes implementing this interface may or may not throw a
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    38
 * {@code NullPointerException} if the additional parameter {@code p}
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    39
 * is {@code null}; see documentation of the implementing class for
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    40
 * details.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    41
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    42
 * <p> <b>WARNING:</b> It is possible that methods will be added to
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    43
 * this interface to accommodate new, currently unknown, doc comment
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    44
 * structures added to future versions of the Java&trade; programming
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    45
 * language.  Therefore, visitor classes directly implementing this
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    46
 * interface may be source incompatible with future versions of the
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    47
 * platform.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    48
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    49
 * @param <R> the return type of this visitor's methods.  Use {@link
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    50
 *            Void} for visitors that do not need to return results.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    51
 * @param <P> the type of the additional parameter to this visitor's
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    52
 *            methods.  Use {@code Void} for visitors that do not need an
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    53
 *            additional parameter.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    54
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    55
 * @since 1.8
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    56
 */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    57
public interface DocTreeVisitor<R,P> {
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    58
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    59
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    60
     * Visits an AttributeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    61
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    62
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    63
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    64
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    65
    R visitAttribute(AttributeTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    66
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    67
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    68
     * Visits an AuthorTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    69
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    70
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    71
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    72
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    73
    R visitAuthor(AuthorTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    74
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    75
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    76
     * Visits a CommentTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    77
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    78
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    79
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    80
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    81
    R visitComment(CommentTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    82
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    83
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    84
     * Visits a DeprecatedTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    85
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    86
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    87
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    88
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    89
    R visitDeprecated(DeprecatedTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    90
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    91
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    92
     * Visits a DocCommentTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    93
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    94
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    95
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    96
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    97
    R visitDocComment(DocCommentTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    98
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    99
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   100
     * Visits a DocRootTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   101
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   102
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   103
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   104
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   105
    R visitDocRoot(DocRootTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   106
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   107
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   108
     * Visits an EndElementTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   109
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   110
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   111
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   112
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   113
    R visitEndElement(EndElementTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   114
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   115
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   116
     * Visits an EntityTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   117
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   118
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   119
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   120
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   121
    R visitEntity(EntityTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   122
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   123
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   124
     * Visits an ErroneousTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   125
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   126
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   127
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   128
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   129
    R visitErroneous(ErroneousTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   130
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   131
    /**
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   132
     * Visits a HiddenTree node.
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   133
     * @param node the node being visited
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   134
     * @param p a parameter value
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   135
     * @return a result value
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   136
     */
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   137
    R visitHidden(HiddenTree node, P p);
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   138
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   139
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   140
     * Visits an IdentifierTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   141
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   142
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   143
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   144
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   145
    R visitIdentifier(IdentifierTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   146
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   147
    /**
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   148
     * Visits an IndexTree node.
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   149
     * @param node the node being visited
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   150
     * @param p a parameter value
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   151
     * @return a result value
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   152
     */
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   153
    R visitIndex(IndexTree node, P p);
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   154
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   155
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   156
     * Visits an InheritDocTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   157
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   158
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   159
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   160
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   161
    R visitInheritDoc(InheritDocTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   162
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   163
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   164
     * Visits a LinkTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   165
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   166
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   167
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   168
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   169
    R visitLink(LinkTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   170
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   171
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   172
     * Visits an LiteralTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   173
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   174
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   175
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   176
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   177
    R visitLiteral(LiteralTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   178
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   179
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   180
     * Visits a ParamTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   181
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   182
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   183
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   184
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   185
    R visitParam(ParamTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   186
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   187
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   188
     * Visits a ReferenceTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   189
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   190
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   191
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   192
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   193
    R visitReference(ReferenceTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   194
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   195
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   196
     * Visits a ReturnTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   197
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   198
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   199
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   200
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   201
    R visitReturn(ReturnTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   202
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   203
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   204
     * Visits a SeeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   205
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   206
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   207
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   208
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   209
    R visitSee(SeeTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   210
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   211
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   212
     * Visits a SerialTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   213
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   214
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   215
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   216
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   217
    R visitSerial(SerialTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   218
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   219
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   220
     * Visits a SerialDataTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   221
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   222
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   223
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   224
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   225
    R visitSerialData(SerialDataTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   226
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   227
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   228
     * Visits a SerialFieldTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   229
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   230
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   231
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   232
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   233
    R visitSerialField(SerialFieldTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   234
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   235
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   236
     * Visits a SinceTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   237
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   238
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   239
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   240
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   241
    R visitSince(SinceTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   242
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   243
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   244
     * Visits a StartElementTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   245
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   246
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   247
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   248
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   249
    R visitStartElement(StartElementTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   250
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   251
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   252
     * Visits a TextTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   253
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   254
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   255
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   256
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   257
    R visitText(TextTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   258
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   259
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   260
     * Visits a ThrowsTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   261
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   262
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   263
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   264
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   265
    R visitThrows(ThrowsTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   266
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   267
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   268
     * Visits an UnknownBlockTagTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   269
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   270
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   271
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   272
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   273
    R visitUnknownBlockTag(UnknownBlockTagTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   274
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   275
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   276
     * Visits an UnknownInlineTagTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   277
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   278
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   279
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   280
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   281
    R visitUnknownInlineTag(UnknownInlineTagTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   282
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   283
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   284
     * Visits a ValueTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   285
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   286
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   287
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   288
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   289
    R visitValue(ValueTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   290
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   291
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   292
     * Visits a VersionTreeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   293
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   294
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   295
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   296
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   297
    R visitVersion(VersionTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   298
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   299
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   300
     * Visits an unknown type of DocTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   301
     * This can occur if the set of tags evolves and new kinds
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   302
     * of nodes are added to the {@code DocTree} hierarchy.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   303
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   304
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   305
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   306
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   307
    R visitOther(DocTree node, P p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   308
}