langtools/src/jdk.compiler/share/classes/com/sun/source/doctree/DocTreeVisitor.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
29 /** |
29 /** |
30 * A visitor of trees, in the style of the visitor design pattern. |
30 * A visitor of trees, in the style of the visitor design pattern. |
31 * Classes implementing this interface are used to operate |
31 * Classes implementing this interface are used to operate |
32 * on a tree when the kind of tree is unknown at compile time. |
32 * on a tree when the kind of tree is unknown at compile time. |
33 * When a visitor is passed to an tree's {@link DocTree#accept |
33 * When a visitor is passed to an tree's {@link DocTree#accept |
34 * accept} method, the <tt>visit<i>XYZ</i></tt> method most applicable |
34 * accept} method, the <code>visit<i>Xyz</i></code> method most applicable |
35 * to that tree is invoked. |
35 * to that tree is invoked. |
36 * |
36 * |
37 * <p> Classes implementing this interface may or may not throw a |
37 * <p> Classes implementing this interface may or may not throw a |
38 * {@code NullPointerException} if the additional parameter {@code p} |
38 * {@code NullPointerException} if the additional parameter {@code p} |
39 * is {@code null}; see documentation of the implementing class for |
39 * is {@code null}; see documentation of the implementing class for |