langtools/src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.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.util;
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
import com.sun.source.doctree.*;
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
    29
import com.sun.tools.javac.tree.DCTree.DCIndex;
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    30
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    31
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    32
/**
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    33
 * A TreeVisitor that visits all the child tree nodes.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    34
 * To visit nodes of a particular type, just override the
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    35
 * corresponding visitXYZ method.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    36
 * Inside your method, call super.visitXYZ to visit descendant
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    37
 * nodes.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    38
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    39
 * <p>The default implementation of the visitXYZ methods will determine
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    40
 * a result as follows:
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    41
 * <ul>
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    42
 * <li>If the node being visited has no children, the result will be {@code null}.
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    43
 * <li>If the node being visited has one child, the result will be the
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    44
 * result of calling {@code scan} on that child. The child may be a simple node
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    45
 * or itself a list of nodes.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    46
 * <li> If the node being visited has more than one child, the result will
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    47
 * be determined by calling {@code scan} each child in turn, and then combining the
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    48
 * result of each scan after the first with the cumulative result
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    49
 * so far, as determined by the {@link #reduce} method. Each child may be either
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    50
 * a simple node of a list of nodes. The default behavior of the {@code reduce}
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    51
 * method is such that the result of the visitXYZ method will be the result of
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    52
 * the last child scanned.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    53
 * </ul>
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
 * <p>Here is an example to count the number of erroneous nodes in a tree:
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    56
 * <pre>
16559
e927a4e65b0c 8010315: doclint errors in javac public API
jjg
parents: 16303
diff changeset
    57
 *   class CountErrors extends DocTreeScanner&lt;Integer,Void&gt; {
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    58
 *      {@literal @}Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    59
 *      public Integer visitErroneous(ErroneousTree node, Void p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    60
 *          return 1;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    61
 *      }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    62
 *      {@literal @}Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    63
 *      public Integer reduce(Integer r1, Integer r2) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    64
 *          return (r1 == null ? 0 : r1) + (r2 == null ? 0 : r2);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    65
 *      }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    66
 *   }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    67
 * </pre>
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    68
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    69
 * @since 1.8
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    70
 */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    71
public class DocTreeScanner<R,P> implements DocTreeVisitor<R,P> {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    72
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    73
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    74
     * Scans a single node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    75
     * @param node the node to be scanned
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    76
     * @param p a parameter value passed to the visit method
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    77
     * @return the result value from the visit method
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    78
     */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    79
    public R scan(DocTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    80
        return (node == null) ? null : node.accept(this, p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    81
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    82
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    83
    private R scanAndReduce(DocTree node, P p, R r) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    84
        return reduce(scan(node, p), r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    85
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    86
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    87
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    88
     * Scans a sequence of nodes.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    89
     * @param nodes the nodes to be scanned
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    90
     * @param p a parameter value to be passed to the visit method for each node
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    91
     * @return the combined return value from the visit methods.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    92
     *      The values are combined using the {@link #reduce reduce} method.
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    93
     */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    94
    public R scan(Iterable<? extends DocTree> nodes, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    95
        R r = null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    96
        if (nodes != null) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    97
            boolean first = true;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    98
            for (DocTree node : nodes) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    99
                r = (first ? scan(node, p) : scanAndReduce(node, p, r));
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   100
                first = false;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   101
            }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   102
        }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   103
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   104
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   105
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   106
    private R scanAndReduce(Iterable<? extends DocTree> nodes, P p, R r) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   107
        return reduce(scan(nodes, p), r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   108
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   109
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   110
    /**
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   111
     * Reduces two results into a combined result.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   112
     * The default implementation is to return the first parameter.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   113
     * The general contract of the method is that it may take any action whatsoever.
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   114
     * @param r1 the first of the values to be combined
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   115
     * @param r2 the second of the values to be combined
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   116
     * @return the result of combining the two parameters
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   117
     */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   118
    public R reduce(R r1, R r2) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   119
        return r1;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   120
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   121
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   122
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   123
/* ***************************************************************************
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   124
 * Visitor methods
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   125
 ****************************************************************************/
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   126
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   127
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   128
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   129
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   130
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   131
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   132
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   133
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   134
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   135
    public R visitAttribute(AttributeTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   136
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   137
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   138
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   139
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   140
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   141
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   142
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   143
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   144
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   145
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   146
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   147
    public R visitAuthor(AuthorTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   148
        return scan(node.getName(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   149
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   150
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   151
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   152
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   153
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   154
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   155
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   156
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   157
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   158
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   159
    public R visitComment(CommentTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   160
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   161
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   162
25287
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
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   165
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   166
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   167
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   168
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   169
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   170
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   171
    public R visitDeprecated(DeprecatedTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   172
        return scan(node.getBody(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   173
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   174
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   175
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   176
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   177
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   178
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   179
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   180
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   181
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   182
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   183
    public R visitDocComment(DocCommentTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   184
        R r = scan(node.getFirstSentence(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   185
        r = scanAndReduce(node.getBody(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   186
        r = scanAndReduce(node.getBlockTags(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   187
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   188
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   189
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   190
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   191
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   192
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   193
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   194
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   195
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   196
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   197
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   198
    public R visitDocRoot(DocRootTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   199
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   200
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   201
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
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   204
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   205
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   206
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   207
     * @return the result of scanning
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
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   210
    public R visitEndElement(EndElementTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   211
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   212
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   213
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   214
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   215
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   216
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   217
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   218
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   219
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   220
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   221
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   222
    public R visitEntity(EntityTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   223
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   224
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   225
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
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   228
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   229
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   230
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   231
     * @return the result of scanning
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
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   234
    public R visitErroneous(ErroneousTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   235
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   236
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   237
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   238
    /**
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   239
     * {@inheritDoc} This implementation scans the children in left to right order.
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   240
     *
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   241
     * @param node  {@inheritDoc}
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   242
     * @param p  {@inheritDoc}
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   243
     * @return the result of scanning
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   244
     */
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   245
    @Override
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   246
    public R visitHidden(HiddenTree node, P p) {
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   247
        return scan(node.getBody(), p);
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   248
    }
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   249
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   250
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   251
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   252
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   253
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   254
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   255
     * @return the result of scanning
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
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   258
    public R visitIdentifier(IdentifierTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   259
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   260
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   261
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   262
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   263
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   264
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   265
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   266
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   267
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   268
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   269
    @Override
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   270
    public R visitIndex(IndexTree node, P p) {
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   271
        R r = scan(node.getSearchTerm(), p);
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   272
        r = scanAndReduce(node.getDescription(), p, r);
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   273
        return r;
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   274
    }
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   275
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   276
    /**
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   277
     * {@inheritDoc} This implementation returns {@code null}.
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   278
     *
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   279
     * @param node  {@inheritDoc}
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   280
     * @param p  {@inheritDoc}
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   281
     * @return the result of scanning
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   282
     */
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   283
    @Override
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   284
    public R visitInheritDoc(InheritDocTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   285
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   286
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   287
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   288
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   289
     * {@inheritDoc} This implementation scans the children in left to right order.
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
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   292
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   293
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   294
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   295
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   296
    public R visitLink(LinkTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   297
        R r = scan(node.getReference(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   298
        r = scanAndReduce(node.getLabel(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   299
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   300
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   301
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   302
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   303
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   304
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   305
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   306
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   307
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   308
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   309
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   310
    public R visitLiteral(LiteralTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   311
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   312
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   313
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   314
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   315
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   316
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   317
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   318
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   319
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   320
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   321
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   322
    public R visitParam(ParamTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   323
        R r = scan(node.getName(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   324
        r = scanAndReduce(node.getDescription(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   325
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   326
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   327
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   328
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   329
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   330
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   331
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   332
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   333
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   334
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   335
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   336
    public R visitReference(ReferenceTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   337
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   338
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   339
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   340
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   341
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   342
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   343
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   344
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   345
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   346
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   347
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   348
    public R visitReturn(ReturnTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   349
        return scan(node.getDescription(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   350
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   351
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   352
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   353
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   354
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   355
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   356
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   357
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   358
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   359
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   360
    public R visitSee(SeeTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   361
        return scan(node.getReference(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   362
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   363
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   364
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   365
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   366
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   367
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   368
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   369
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   370
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   371
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   372
    public R visitSerial(SerialTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   373
        return scan(node.getDescription(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   374
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   375
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   376
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   377
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   378
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   379
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   380
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   381
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   382
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   383
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   384
    public R visitSerialData(SerialDataTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   385
        return scan(node.getDescription(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   386
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   387
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   388
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   389
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   390
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   391
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   392
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   393
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   394
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   395
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   396
    public R visitSerialField(SerialFieldTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   397
        R r = scan(node.getName(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   398
        r = scanAndReduce(node.getType(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   399
        r = scanAndReduce(node.getDescription(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   400
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   401
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   402
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   403
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   404
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   405
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   406
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   407
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   408
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   409
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   410
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   411
    public R visitSince(SinceTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   412
        return scan(node.getBody(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   413
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   414
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   415
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   416
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   417
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   418
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   419
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   420
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   421
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   422
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   423
    public R visitStartElement(StartElementTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   424
        return scan(node.getAttributes(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   425
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   426
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   427
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   428
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   429
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   430
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   431
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   432
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   433
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   434
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   435
    public R visitText(TextTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   436
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   437
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   438
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   439
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   440
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   441
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   442
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   443
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   444
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   445
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   446
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   447
    public R visitThrows(ThrowsTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   448
        R r = scan(node.getExceptionName(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   449
        r = scanAndReduce(node.getDescription(), p, r);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   450
        return r;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   451
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   452
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   453
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   454
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   455
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   456
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   457
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   458
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   459
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   460
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   461
    public R visitUnknownBlockTag(UnknownBlockTagTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   462
        return scan(node.getContent(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   463
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   464
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   465
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   466
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   467
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   468
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   469
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   470
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   471
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   472
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   473
    public R visitUnknownInlineTag(UnknownInlineTagTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   474
        return scan(node.getContent(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   475
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   476
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   477
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   478
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   479
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   480
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   481
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   482
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   483
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   484
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   485
    public R visitValue(ValueTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   486
        return scan(node.getReference(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   487
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   488
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   489
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   490
     * {@inheritDoc} This implementation scans the children in left to right order.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   491
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   492
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   493
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   494
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   495
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   496
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   497
    public R visitVersion(VersionTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   498
        return scan(node.getBody(), p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   499
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   500
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   501
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   502
     * {@inheritDoc} This implementation returns {@code null}.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   503
     *
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   504
     * @param node  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   505
     * @param p  {@inheritDoc}
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   506
     * @return the result of scanning
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   507
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   508
    @Override
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   509
    public R visitOther(DocTree node, P p) {
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   510
        return null;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   511
    }
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   512
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   513
}