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