35 /**
36 * A visitor of program elements based on their {@linkplain
37 * ElementKind kind} with default behavior appropriate for the {@link
38 * SourceVersion#RELEASE_6 RELEASE_6} source version. For {@linkplain
39 * Element elements} <code><i>Xyz</i></code> that may have more than one
40 * kind, the <code>visit<i>Xyz</i></code> methods in this class delegate
41 * to the <code>visit<i>Xyz</i>As<i>Kind</i></code> method corresponding to the
42 * first argument's kind. The <code>visit<i>Xyz</i>As<i>Kind</i></code> methods
43 * call {@link #defaultAction defaultAction}, passing their arguments
44 * to {@code defaultAction}'s corresponding parameters.
45 *
46 * @apiNote
47 * Methods in this class may be overridden subject to their general
48 * contract.
49 *
50 * <p id=note_for_subclasses><strong>WARNING:</strong> The {@code
51 * ElementVisitor} interface implemented by this class may have
52 * methods added to it or the {@link ElementKind ElementKind enum}
53 * used in this class may have constants added to it in the future to
54 * accommodate new, currently unknown, language structures added to
55 * future versions of the Java™ programming language.
56 * Therefore, methods whose names begin with {@code "visit"} may be
57 * added to this class in the future; to avoid incompatibilities,
58 * classes and subclasses which extend this class should not declare
59 * any instance methods with names beginning with {@code "visit"}.</p>
60 *
61 * <p>When such a new visit method is added, the default
62 * implementation in this class will be to directly or indirectly call
63 * the {@link #visitUnknown visitUnknown} method. A new abstract
64 * element kind visitor class will also be introduced to correspond to
65 * the new language level; this visitor will have different default
66 * behavior for the visit method in question. When a new visitor is
67 * introduced, portions of this visitor class may be deprecated,
68 * including its constructors.
69 *
70 * @param <R> the return type of this visitor's methods. Use {@link
71 * Void} for visitors that do not need to return results.
72 * @param <P> the type of the additional parameter to this visitor's
73 * methods. Use {@code Void} for visitors that do not need an
74 * additional parameter.
75 *
|
35 /**
36 * A visitor of program elements based on their {@linkplain
37 * ElementKind kind} with default behavior appropriate for the {@link
38 * SourceVersion#RELEASE_6 RELEASE_6} source version. For {@linkplain
39 * Element elements} <code><i>Xyz</i></code> that may have more than one
40 * kind, the <code>visit<i>Xyz</i></code> methods in this class delegate
41 * to the <code>visit<i>Xyz</i>As<i>Kind</i></code> method corresponding to the
42 * first argument's kind. The <code>visit<i>Xyz</i>As<i>Kind</i></code> methods
43 * call {@link #defaultAction defaultAction}, passing their arguments
44 * to {@code defaultAction}'s corresponding parameters.
45 *
46 * @apiNote
47 * Methods in this class may be overridden subject to their general
48 * contract.
49 *
50 * <p id=note_for_subclasses><strong>WARNING:</strong> The {@code
51 * ElementVisitor} interface implemented by this class may have
52 * methods added to it or the {@link ElementKind ElementKind enum}
53 * used in this class may have constants added to it in the future to
54 * accommodate new, currently unknown, language structures added to
55 * future versions of the Java programming language.
56 * Therefore, methods whose names begin with {@code "visit"} may be
57 * added to this class in the future; to avoid incompatibilities,
58 * classes and subclasses which extend this class should not declare
59 * any instance methods with names beginning with {@code "visit"}.</p>
60 *
61 * <p>When such a new visit method is added, the default
62 * implementation in this class will be to directly or indirectly call
63 * the {@link #visitUnknown visitUnknown} method. A new abstract
64 * element kind visitor class will also be introduced to correspond to
65 * the new language level; this visitor will have different default
66 * behavior for the visit method in question. When a new visitor is
67 * introduced, portions of this visitor class may be deprecated,
68 * including its constructors.
69 *
70 * @param <R> the return type of this visitor's methods. Use {@link
71 * Void} for visitors that do not need to return results.
72 * @param <P> the type of the additional parameter to this visitor's
73 * methods. Use {@code Void} for visitors that do not need an
74 * additional parameter.
75 *
|