52 * added to future versions of the Java™ programming language.
53 * Therefore, methods whose names begin with {@code "visit"} may be
54 * added to this class in the future; to avoid incompatibilities,
55 * classes which extend this class should not declare any instance
56 * methods with names beginning with {@code "visit"}.
57 *
58 * <p>When such a new visit method is added, the default
59 * implementation in this class will be to call the {@link
60 * #visitUnknown visitUnknown} method. A new simple element visitor
61 * class will also be introduced to correspond to the new language
62 * level; this visitor will have different default behavior for the
63 * visit method in question. When the new visitor is introduced, all
64 * or portions of this visitor may be deprecated.
65 *
66 * @param <R> the return type of this visitor's methods. Use {@code Void}
67 * for visitors that do not need to return results.
68 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void}
69 * for visitors that do not need an additional parameter.
70 *
71 * @see SimpleElementVisitor6
72 * @since 1.7
73 */
74 @SupportedSourceVersion(RELEASE_7)
75 public class SimpleElementVisitor7<R, P> extends SimpleElementVisitor6<R, P> {
76 /**
77 * Constructor for concrete subclasses; uses {@code null} for the
78 * default value.
79 */
80 protected SimpleElementVisitor7(){
81 super(null);
82 }
83
84 /**
85 * Constructor for concrete subclasses; uses the argument for the
86 * default value.
87 *
88 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
89 */
90 protected SimpleElementVisitor7(R defaultValue){
91 super(defaultValue);
|
52 * added to future versions of the Java™ programming language.
53 * Therefore, methods whose names begin with {@code "visit"} may be
54 * added to this class in the future; to avoid incompatibilities,
55 * classes which extend this class should not declare any instance
56 * methods with names beginning with {@code "visit"}.
57 *
58 * <p>When such a new visit method is added, the default
59 * implementation in this class will be to call the {@link
60 * #visitUnknown visitUnknown} method. A new simple element visitor
61 * class will also be introduced to correspond to the new language
62 * level; this visitor will have different default behavior for the
63 * visit method in question. When the new visitor is introduced, all
64 * or portions of this visitor may be deprecated.
65 *
66 * @param <R> the return type of this visitor's methods. Use {@code Void}
67 * for visitors that do not need to return results.
68 * @param <P> the type of the additional parameter to this visitor's methods. Use {@code Void}
69 * for visitors that do not need an additional parameter.
70 *
71 * @see SimpleElementVisitor6
72 * @see SimpleElementVisitor8
73 * @since 1.7
74 */
75 @SupportedSourceVersion(RELEASE_7)
76 public class SimpleElementVisitor7<R, P> extends SimpleElementVisitor6<R, P> {
77 /**
78 * Constructor for concrete subclasses; uses {@code null} for the
79 * default value.
80 */
81 protected SimpleElementVisitor7(){
82 super(null);
83 }
84
85 /**
86 * Constructor for concrete subclasses; uses the argument for the
87 * default value.
88 *
89 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
90 */
91 protected SimpleElementVisitor7(R defaultValue){
92 super(defaultValue);
|