71 * #visitUnknown visitUnknown} method. A new abstract element kind
72 * visitor class will also be introduced to correspond to the new
73 * language level; this visitor will have different default behavior
74 * for the visit method in question. When the new visitor is
75 * introduced, all or portions of this visitor may be deprecated.
76 *
77 * @param <R> the return type of this visitor's methods. Use {@link
78 * Void} for visitors that do not need to return results.
79 * @param <P> the type of the additional parameter to this visitor's
80 * methods. Use {@code Void} for visitors that do not need an
81 * additional parameter.
82 *
83 * @see ElementKindVisitor6
84 * @see ElementKindVisitor7
85 * @see ElementKindVisitor8
86 * @see ElementKindVisitor9
87 * @since 14
88 */
89 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
90 essentialAPI=false)
91 @SupportedSourceVersion(RELEASE_14)
92 public class ElementKindVisitor14<R, P> extends ElementKindVisitor9<R, P> {
93 /**
94 * Constructor for concrete subclasses; uses {@code null} for the
95 * default value.
96 */
97 protected ElementKindVisitor14() {
98 super(null);
99 }
100
101 /**
102 * Constructor for concrete subclasses; uses the argument for the
103 * default value.
104 *
105 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
106 */
107 protected ElementKindVisitor14(R defaultValue) {
108 super(defaultValue);
109 }
110
111 /**
|
71 * #visitUnknown visitUnknown} method. A new abstract element kind
72 * visitor class will also be introduced to correspond to the new
73 * language level; this visitor will have different default behavior
74 * for the visit method in question. When the new visitor is
75 * introduced, all or portions of this visitor may be deprecated.
76 *
77 * @param <R> the return type of this visitor's methods. Use {@link
78 * Void} for visitors that do not need to return results.
79 * @param <P> the type of the additional parameter to this visitor's
80 * methods. Use {@code Void} for visitors that do not need an
81 * additional parameter.
82 *
83 * @see ElementKindVisitor6
84 * @see ElementKindVisitor7
85 * @see ElementKindVisitor8
86 * @see ElementKindVisitor9
87 * @since 14
88 */
89 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
90 essentialAPI=false)
91 @SupportedSourceVersion(RELEASE_15)
92 public class ElementKindVisitor14<R, P> extends ElementKindVisitor9<R, P> {
93 /**
94 * Constructor for concrete subclasses; uses {@code null} for the
95 * default value.
96 */
97 protected ElementKindVisitor14() {
98 super(null);
99 }
100
101 /**
102 * Constructor for concrete subclasses; uses the argument for the
103 * default value.
104 *
105 * @param defaultValue the value to assign to {@link #DEFAULT_VALUE}
106 */
107 protected ElementKindVisitor14(R defaultValue) {
108 super(defaultValue);
109 }
110
111 /**
|