60 * <p>When such a new visit method is added, the default
61 * implementation in this class will be to call the {@link
62 * #visitUnknown visitUnknown} method. A new type kind visitor class
63 * will also be introduced to correspond to the new language level;
64 * this visitor will have different default behavior for the visit
65 * method in question. When the new visitor is introduced, all or
66 * portions of this visitor may be deprecated.
67 *
68 * @param <R> the return type of this visitor's methods. Use {@link
69 * Void} for visitors that do not need to return results.
70 * @param <P> the type of the additional parameter to this visitor's
71 * methods. Use {@code Void} for visitors that do not need an
72 * additional parameter.
73 *
74 * @see TypeKindVisitor6
75 * @see TypeKindVisitor7
76 * @see TypeKindVisitor8
77 * @see TypeKindVisitor9
78 * @since 14
79 */
80 @SupportedSourceVersion(RELEASE_14)
81 public class TypeKindVisitor14<R, P> extends TypeKindVisitor9<R, P> {
82 /**
83 * Constructor for concrete subclasses to call; uses {@code null}
84 * for the default value.
85 */
86 protected TypeKindVisitor14() {
87 super(null);
88 }
89
90 /**
91 * Constructor for concrete subclasses to call; uses the argument
92 * for the default value.
93 *
94 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
95 */
96 protected TypeKindVisitor14(R defaultValue) {
97 super(defaultValue);
98 }
99 }
|
60 * <p>When such a new visit method is added, the default
61 * implementation in this class will be to call the {@link
62 * #visitUnknown visitUnknown} method. A new type kind visitor class
63 * will also be introduced to correspond to the new language level;
64 * this visitor will have different default behavior for the visit
65 * method in question. When the new visitor is introduced, all or
66 * portions of this visitor may be deprecated.
67 *
68 * @param <R> the return type of this visitor's methods. Use {@link
69 * Void} for visitors that do not need to return results.
70 * @param <P> the type of the additional parameter to this visitor's
71 * methods. Use {@code Void} for visitors that do not need an
72 * additional parameter.
73 *
74 * @see TypeKindVisitor6
75 * @see TypeKindVisitor7
76 * @see TypeKindVisitor8
77 * @see TypeKindVisitor9
78 * @since 14
79 */
80 @SupportedSourceVersion(RELEASE_15)
81 public class TypeKindVisitor14<R, P> extends TypeKindVisitor9<R, P> {
82 /**
83 * Constructor for concrete subclasses to call; uses {@code null}
84 * for the default value.
85 */
86 protected TypeKindVisitor14() {
87 super(null);
88 }
89
90 /**
91 * Constructor for concrete subclasses to call; uses the argument
92 * for the default value.
93 *
94 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
95 */
96 protected TypeKindVisitor14(R defaultValue) {
97 super(defaultValue);
98 }
99 }
|