24 */
25
26 package javax.lang.model.util;
27
28 import javax.annotation.processing.SupportedSourceVersion;
29 import javax.lang.model.SourceVersion;
30 import javax.lang.model.element.*;
31 import static javax.lang.model.SourceVersion.*;
32
33
34 /**
35 * A skeletal visitor of program elements with default behavior
36 * appropriate for the {@link SourceVersion#RELEASE_6 RELEASE_6}
37 * source version.
38 *
39 * @apiNote
40 * <p id=note_for_subclasses><strong>WARNING:</strong> The {@code
41 * ElementVisitor} interface implemented by this class may have
42 * methods added to it in the future to accommodate new, currently
43 * unknown, language structures added to future versions of the
44 * Java™ programming language. Therefore, methods whose names
45 * begin with {@code "visit"} may be added to this class in the
46 * future; to avoid incompatibilities, classes and subclasses which
47 * extend this class should not declare any instance methods with
48 * names beginning with {@code "visit"}.</p>
49 *
50 * <p>When such a new visit method is added, the default
51 * implementation in this class will be to directly or indirectly call
52 * the {@link #visitUnknown visitUnknown} method. A new abstract
53 * element visitor class will also be introduced to correspond to the
54 * new language level; this visitor will have different default
55 * behavior for the visit method in question. When a new visitor is
56 * introduced, portions of this visitor class may be deprecated,
57 * including its constructors.
58 *
59 * @param <R> the return type of this visitor's methods. Use {@link
60 * Void} for visitors that do not need to return results.
61 * @param <P> the type of the additional parameter to this visitor's
62 * methods. Use {@code Void} for visitors that do not need an
63 * additional parameter.
64 *
|
24 */
25
26 package javax.lang.model.util;
27
28 import javax.annotation.processing.SupportedSourceVersion;
29 import javax.lang.model.SourceVersion;
30 import javax.lang.model.element.*;
31 import static javax.lang.model.SourceVersion.*;
32
33
34 /**
35 * A skeletal visitor of program elements with default behavior
36 * appropriate for the {@link SourceVersion#RELEASE_6 RELEASE_6}
37 * source version.
38 *
39 * @apiNote
40 * <p id=note_for_subclasses><strong>WARNING:</strong> The {@code
41 * ElementVisitor} interface implemented by this class may have
42 * methods added to it in the future to accommodate new, currently
43 * unknown, language structures added to future versions of the
44 * Java programming language. Therefore, methods whose names
45 * begin with {@code "visit"} may be added to this class in the
46 * future; to avoid incompatibilities, classes and subclasses which
47 * extend this class should not declare any instance methods with
48 * names beginning with {@code "visit"}.</p>
49 *
50 * <p>When such a new visit method is added, the default
51 * implementation in this class will be to directly or indirectly call
52 * the {@link #visitUnknown visitUnknown} method. A new abstract
53 * element visitor class will also be introduced to correspond to the
54 * new language level; this visitor will have different default
55 * behavior for the visit method in question. When a new visitor is
56 * introduced, portions of this visitor class may be deprecated,
57 * including its constructors.
58 *
59 * @param <R> the return type of this visitor's methods. Use {@link
60 * Void} for visitors that do not need to return results.
61 * @param <P> the type of the additional parameter to this visitor's
62 * methods. Use {@code Void} for visitors that do not need an
63 * additional parameter.
64 *
|